# $Id$ # $URL$ # Zie: http://docs.python.org/library/logging.html # nb geen spaties bij de komma's! [loggers] keys = root,meresco,configs,inbox,configWatcher,gui,gui.drilldown,gui.drilldownconfig,gui.search,gui.resultlist,gui.availability,gui.searchform,gui.index,server,record,infra,json,multileveldrilldown,httpserver [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 [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') ############################################################ # logging per file # # General # [logger_infra] level = WARNING qualname = meresco.infra handlers = syslog [logger_configs] level = INFO handlers = syslog qualname = meresco.configs [logger_meresco] level = DEBUG handlers = syslog qualname = meresco [logger_server] level = INFO handlers = syslog qualname = meresco.server [logger_configWatcher] level = INFO handlers = syslog qualname = meresco.configWatcher [logger_inbox] level = WARNING handlers = syslog qualname = meresco.inbox [logger_googlelikequery] level = INFO handlers = syslog qualname = meresco.googlelikequery [logger_multileveldrilldown] level = INFO handlers = syslog qualname = meresco.multileveldrilldown # # GUI # [logger_gui] level = WARNING handlers = syslog qualname = meresco.gui [logger_gui.drilldown] level = INFO handlers = syslog qualname = meresco.drilldown [logger_gui.drilldownconfig] level = INFO handlers = syslog qualname = meresco.drilldownconfig [logger_gui.search] level = INFO handlers = syslog qualname = meresco.search [logger_gui.resultlist] level = WARNING handlers = syslog qualname = meresco.resultlist [logger_gui.availability] level = WARNING handlers = syslog qualname = meresco.availability [logger_gui.searchform] level = WARNING handlers = syslog qualname = meresco.searchform [logger_gui.index] level = INFO handlers = syslog qualname = meresco.index [logger_record] level = INFO handlers = syslog qualname = meresco.record [logger_json] level = WARNING handlers = syslog qualname = meresco.json [logger_httpserver] level = WARNING handlers = syslog qualname = meresco.httpserver # # 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 = ('debug.log', 'w') args = (sys.stderr,) #[logger_smtp] #level = CRITICAL #handlers = default #qualname = mailer