summaryrefslogtreecommitdiff
path: root/test/syncevo-http-server-logging.conf
blob: 871e14996cfac290f582b1ae6803642c60a4a9cb (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
51
52
53
54
55
56
57
58
59
60
61
62
# Logging configuration for a syncevo-http-server.  Writes log files
# into the current directory, with rotation. Log levels are chosen so
# that important messages (>= INFO) are shown on the console and
# written info syncevo-http-server.log.
#
# The console output is similar to that of the SyncEvolution command
# line whereas the one for files includes a data.
#
# See http://docs.python.org/library/logging.html#configuration-file-format

[loggers]
# root = collects messages from other modules
# twisted = generic HTTP server framework
# syncevo-http = syncevo-http-server output
# sync = normal SyncEvolution output
keys=root,twisted,syncevo_http,sync

[handlers]
keys=consoleHandler,fileHandler

[formatters]
keys=consoleFormatter,fileFormatter

[logger_root]
level=NOTSET
handlers=consoleHandler,fileHandler

[logger_twisted]
level=NOTSET
handlers=
propagate=1
qualname=twisted

[logger_syncevo_http]
level=NOTSET
handlers=
propagate=1
qualname=syncevo-http

[logger_sync]
level=NOTSET
handlers=
propagate=1
qualname=sync

[handler_consoleHandler]
class=StreamHandler
level=INFO
formatter=consoleFormatter
args=(sys.stdout,)

[handler_fileHandler]
class=FileHandler
level=INFO
formatter=fileFormatter
args=('syncevo-http-server.log', 'w')

[formatter_consoleFormatter]
format=[%(levelname)s] %(name)s: %(message)s

[formatter_fileFormatter]
format=%(asctime)s - %(name)s - %(levelname)s - %(message)s