aboutsummaryrefslogtreecommitdiffstats
path: root/roles/radicale/files/logging
blob: 07fae21e07b455849b0d29581c435c09e34d6019 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#
# /usr/local/etc/radicale/logging
# Logging configurations for Radicale
#
# References
# * http://radicale.org/logging/
# * https://docs.python.org/3/library/logging.config.html
#
# Aaron LI
# Created: 2017-04-27
#


# NOTE: uWSGI will capture the console output, so no longer need to
#       log into a separate file.

[loggers]
keys = root

[handlers]
keys = console

[formatters]
keys = full

#
# Loggers
#

[logger_root]
handlers = console

#
# Handlers
#

[handler_console]
class = StreamHandler
level = INFO
#level = DEBUG
args = (sys.stdout,)
formatter = full

#
# Formatters
#

[formatter_full]
format = %(asctime)s - %(levelname)s: %(message)s
datefmt = %b %d %H:%M:%S