# http://docs.python.org/library/logging.html # nb geen spaties tussen achter de komma's! [loggers] keys = root,gui,configs,inbox,gui [handlers] keys = syslog,default [formatters] keys = simple,complex [formatter_simple] [formatter_complex] class = logging.Formatter format = %(asctime)s %(name)s:%(levelname)s[%(pathname)s line:%(lineno)s] -- %(message)s [handler_syslog] class = handlers.SysLogHandler level = ERROR args = [('/dev/log'),handlers.SysLogHandler.LOG_LOCAL0] formatter = complex [logger_configs] level = ERROR handlers = syslog qualname = meresco.configs [logger_inbox] level = ERROR handlers = syslog qualname = meresco.inbox # # GUI # [logger_gui] level = ERROR handlers = syslog qualname = meresco.gui [logger_gui.resultlist] level = ERROR handlers = syslog qualname = meresco.resultlist [logger_gui.drilldown] level = ERROR handlers = syslog qualname = meresco.resultlist # # DEFAULT # # all messages are propagated to the root unless specified not to [logger_root] level = ERROR handlers = default # [handler_default] class = StreamHandler level = ERROR formatter = complex #args = ('debug.log', 'w') args = (sys.stderr,)