Simplify logging, point to documentation instead

This commit is contained in:
Unrud 2017-06-10 21:24:40 +02:00 committed by GitHub
parent 714483bf0e
commit 4c379eff02

26
logging
View File

@ -3,8 +3,11 @@
# Logging config file for Radicale - A simple calendar server # Logging config file for Radicale - A simple calendar server
# #
# The default path for this kind of files is /etc/radicale/logging # The recommended path for this file is /etc/radicale/logging
# This can be changed in the configuration file # The path must be specified in the logging section of the configuration file
#
# Some examples are included in Radicale's documentation, see:
# http://radicale.org/logging/
# #
# Other handlers are available. For more information, see: # Other handlers are available. For more information, see:
# http://docs.python.org/library/logging.config.html # http://docs.python.org/library/logging.config.html
@ -18,19 +21,19 @@ keys = root
[handlers] [handlers]
# Logging handlers, defining logging output methods # Logging handlers, defining logging output methods
keys = console,file keys = console
[formatters] [formatters]
# Logging formatters # Logging formatters
keys = simple,full keys = simple
# Loggers # Loggers
[logger_root] [logger_root]
# Root logger # Root logger
level = DEBUG level = WARNING
handlers = console,file handlers = console
# Handlers # Handlers
@ -38,23 +41,12 @@ handlers = console,file
[handler_console] [handler_console]
# Console handler # Console handler
class = StreamHandler class = StreamHandler
level = INFO
args = (sys.stderr,) args = (sys.stderr,)
formatter = simple formatter = simple
[handler_file]
# File handler
class = FileHandler
args = ('/var/log/radicale',)
formatter = full
# Formatters # Formatters
[formatter_simple] [formatter_simple]
# Simple output format # Simple output format
format = [%(thread)x] %(levelname)s: %(message)s format = [%(thread)x] %(levelname)s: %(message)s
[formatter_full]
# Full output format
format = %(asctime)s - [%(thread)x] %(levelname)s: %(message)s