diff options
author | Kali Kaneko (leap communications) <kali@leap.se> | 2016-09-26 18:09:30 -0400 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2016-09-26 18:09:30 -0400 |
commit | a61019a5d30502a06b3a0ef09ca32044b8d09e2b (patch) | |
tree | aad1f84e8d539ab5b23609e71dcd17d529d6de87 /src/leap/bitmask/core/bitmaskd.tac | |
parent | 24e9d3bbc98232062a4233f7f5de4f00cc256242 (diff) |
[feature] rotate logs
Diffstat (limited to 'src/leap/bitmask/core/bitmaskd.tac')
-rw-r--r-- | src/leap/bitmask/core/bitmaskd.tac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/leap/bitmask/core/bitmaskd.tac b/src/leap/bitmask/core/bitmaskd.tac index 3c9b1d8..eba2530 100644 --- a/src/leap/bitmask/core/bitmaskd.tac +++ b/src/leap/bitmask/core/bitmaskd.tac @@ -2,10 +2,14 @@ # Run as: twistd -n -y bitmaskd.tac # from twisted.application import service +from twisted.python.log import ILogObserver, FileLogObserver from leap.bitmask.core.service import BitmaskBackend +from leap.bitmask.core.logs import loggerFactory +logger = loggerFactory() bb = BitmaskBackend() application = service.Application("bitmaskd") +application.setComponent(ILogObserver, FileLogObserver(logger).emit) bb.setServiceParent(application) |