# $Id$ # $URL$ # Zie: http://docs.python.org/library/logging.html # nb geen spaties bij de komma's! [loggers] keys = root,server [handlers] keys = syslog,default #,smtp [formatters] keys = simple,complex,stderr [formatter_simple] class = logging.Formatter format = SIMPLE %(name)s:%(levelname)s= %(message)s [formatter_complex] class = logging.Formatter format = %(asctime)s %(name)s:%(levelname)s[%(filename)s line:%(lineno)s] -- %(message)s [formatter_stderr] class = logging.Formatter format = %(name)s:%(levelname)s[%(filename)s line:%(lineno)s] -- %(message)s [handler_syslog] class = handlers.SysLogHandler level = WARNING args = [('/dev/log'),handlers.SysLogHandler.LOG_LOCAL0] formatter = complex ############################################################ # # General # [logger_server] level = INFO handlers = syslog qualname = meresco.server # # DEFAULT # # all messages are always propagated to the root unless specified not to # [logger_root] level = NOTSET handlers = default # all messages are handled by this default handler, writing to stderr [handler_default] class = StreamHandler #level = ERROR level = NOTSET formatter = stderr args = (sys.stderr,)