2011-05-07 12:52:54 +02:00
|
|
|
# -*- mode: conf -*-
|
|
|
|
# vim:ft=cfg
|
|
|
|
|
|
|
|
# Logging config file for Radicale - A simple calendar server
|
|
|
|
#
|
2016-04-09 15:31:47 +02:00
|
|
|
# The default path for this kind of files is /etc/radicale/logging
|
2011-05-07 12:52:54 +02:00
|
|
|
# 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
|
2011-05-07 12:52:54 +02:00
|
|
|
|
|
|
|
[handlers]
|
|
|
|
# Logging handlers, defining logging output methods
|
2011-05-07 13:42:58 +02:00
|
|
|
keys = console,file
|
2011-05-07 12:52:54 +02:00
|
|
|
|
|
|
|
[formatters]
|
|
|
|
# Logging formatters
|
2011-05-07 13:42:58 +02:00
|
|
|
keys = simple,full
|
2011-05-07 12:52:54 +02:00
|
|
|
|
|
|
|
|
|
|
|
# Loggers
|
|
|
|
|
|
|
|
[logger_root]
|
|
|
|
# Root logger
|
2011-05-07 13:42:58 +02:00
|
|
|
level = DEBUG
|
|
|
|
handlers = console,file
|
2011-05-07 12:52:54 +02:00
|
|
|
|
|
|
|
|
|
|
|
# Handlers
|
|
|
|
|
|
|
|
[handler_console]
|
|
|
|
# Console handler
|
2011-05-07 13:42:58 +02:00
|
|
|
class = StreamHandler
|
|
|
|
level = INFO
|
2016-08-25 04:29:39 +02:00
|
|
|
args = (sys.stderr,)
|
2011-05-07 13:42:58 +02:00
|
|
|
formatter = simple
|
2011-05-07 12:52:54 +02:00
|
|
|
|
|
|
|
[handler_file]
|
|
|
|
# File handler
|
2011-05-07 13:42:58 +02:00
|
|
|
class = FileHandler
|
|
|
|
args = ('/var/log/radicale',)
|
|
|
|
formatter = full
|
2011-05-07 12:52:54 +02:00
|
|
|
|
|
|
|
|
2011-05-13 10:40:25 +02:00
|
|
|
# Formatters
|
2011-05-07 12:52:54 +02:00
|
|
|
|
|
|
|
[formatter_simple]
|
|
|
|
# Simple output format
|
2016-09-03 10:19:29 +02:00
|
|
|
format = [%(thread)x] %(levelname)s: %(message)s
|
2011-05-07 12:52:54 +02:00
|
|
|
|
|
|
|
[formatter_full]
|
|
|
|
# Full output format
|
2016-09-03 10:18:07 +02:00
|
|
|
format = %(asctime)s - [%(thread)x] %(levelname)s: %(message)s
|