# http://docs.python.org/library/logging.html#formatter-objects [loggers] keys = root,meresco,smtp [handlers] keys = syslog,default,smtp [formatters] keys = simple,complex [formatter_simple] class = logging.Formatter format = SIMPLE %(name)s:%(levelname)s= %(message)s [formatter_complex] class = logging.Formatter #format = COMLX %(asctime)s %(name)s:%(levelname)s[%(pathname)s line:%(lineno)s] -- %(message)s format = %(asctime)s %(name)s:%(levelname)s[%(filename)s line:%(lineno)s] -- %(message)s [handler_syslog] class = handlers.SysLogHandler level = DEBUG args = [('/dev/log'),handlers.SysLogHandler.LOG_LOCAL0] #args: [('localhost', handlers.SYSLOG_UDP_PORT), handlers.SysLogHandler.LOG_LOCAL0 ] formatter = complex propagate = 1 [handler_smtp] class = handlers.SMTPHandler level = CRITICAL formatter = complex #args=('localhost', 'from@abc', ['user1@abc', 'user2@xyz'], 'Logger Subject') args = ('localhost', 'anton@uvt.nl', ['anton@uvt.nl'], 'Logger Subject') [logger_smtp] level = CRITICAL handlers = default qualname = mailer [handler_default] class = StreamHandler level = NOTSET formatter = complex #args = ('debug.log', 'w') args = (sys.stderr,) [logger_meresco] level = DEBUG handlers = syslog qualname = meresco.gui propagate = 1 [logger_root] level = NOTSET handlers = default