radicale/logging

61 lines
1.1 KiB
Plaintext
Raw Normal View History

# -*- mode: conf -*-
# vim:ft=cfg
# Logging config file for Radicale - A simple calendar server
#
# The default path for this kind of files is /etc/radicale/logging
# This can be changed in the configuration file
#
# Other handlers are available. For more information, see:
# http://docs.python.org/library/logging.config.html
# Loggers, handlers and formatters keys
[loggers]
# Loggers names, main configuration slots
2011-05-07 13:42:58 +02:00
keys = root
[handlers]
# Logging handlers, defining logging output methods
2011-05-07 13:42:58 +02:00
keys = console,file
[formatters]
# Logging formatters
2011-05-07 13:42:58 +02:00
keys = simple,full
# Loggers
[logger_root]
# Root logger
2011-05-07 13:42:58 +02:00
level = DEBUG
handlers = console,file
# Handlers
[handler_console]
# Console handler
2011-05-07 13:42:58 +02:00
class = StreamHandler
level = INFO
args = (sys.stderr,)
2011-05-07 13:42:58 +02:00
formatter = simple
[handler_file]
# File handler
2011-05-07 13:42:58 +02:00
class = FileHandler
args = ('/var/log/radicale',)
formatter = full
# Formatters
[formatter_simple]
# Simple output format
format = [%(thread)x] %(levelname)s: %(message)s
[formatter_full]
# Full output format
format = %(asctime)s - [%(thread)x] %(levelname)s: %(message)s