summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/core/bitmaskd.tac
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2016-09-26 18:09:30 -0400
committerKali Kaneko (leap communications) <kali@leap.se>2016-09-26 18:09:30 -0400
commita61019a5d30502a06b3a0ef09ca32044b8d09e2b (patch)
treeaad1f84e8d539ab5b23609e71dcd17d529d6de87 /src/leap/bitmask/core/bitmaskd.tac
parent24e9d3bbc98232062a4233f7f5de4f00cc256242 (diff)
[feature] rotate logs
Diffstat (limited to 'src/leap/bitmask/core/bitmaskd.tac')
-rw-r--r--src/leap/bitmask/core/bitmaskd.tac4
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)