Skip to content

Instantly share code, notes, and snippets.

@mattias-lidman
Created November 3, 2011 16:24
Show Gist options
  • Select an option

  • Save mattias-lidman/1336955 to your computer and use it in GitHub Desktop.

Select an option

Save mattias-lidman/1336955 to your computer and use it in GitHub Desktop.
# Begin logging configuration
[loggers]
keys = root,beaker,weave
[handlers]
keys = syslog,console
[formatters]
keys = generic
[logger_root]
level = DEBUG
handlers = syslog,console
[logger_weave]
level = INFO
handlers = syslog,console
qualname = birncommunity.weave
[logger_beaker]
level = INFO
handlers = syslog,console
qualname = beaker
[handler_console]
class = StreamHandler
level=NOTSET
formatter=generic
args=(sys.stdout,)
[handler_syslog]
class = handlers.SysLogHandler
args = ['/dev/log',handlers.SysLogHandler.LOG_USER]
level = NOTSET
formatter = generic
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] "%(rid)s" "%(resource)s" "%(client_ip)s" %(message)s
# End logging configuration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment