Commits

Anonymous committed 0852260

Log via syslog instead of flat file.
see bug 9. fixes issue 10.

Comments (0)

Files changed (1)

 # vasm launcher script.
 import os
 import logging
+import logging.handlers
 from optparse import OptionParser
 
 def start_logger():
     logger = logging.getLogger('vasm')
-    hdlr = logging.FileHandler('/var/log/vasm.log')
+    hdlr = logging.handlers.SysLogHandler(address='/dev/log')
     formatter = logging.Formatter('%(asctime)s %(levelname)s %(message)s')
     hdlr.setFormatter(formatter)
     logger.addHandler(hdlr)