-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathlogger.conf
43 lines (31 loc) · 944 Bytes
/
logger.conf
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
# Example logfile configuration.
# This is pythons standard log file configuration file.
# This configuration file allows logs to be set at different levels for
# each component or object.
# Note the formatter_detailed includes much more details in logging including time stamps.
[formatters]
keys: detailed,simple
[handlers]
keys: console,syslog
[loggers]
#keys: root
keys: root,SmimeX509Validation
[formatter_simple]
format: %(name)s:%(levelname)s:%(message)s
[formatter_detailed]
format: %(asctime)s:%(name)s:%(levelname)s %(module)s:%(lineno)d: %(message)s
[handler_console]
class: StreamHandler
args: []
formatter: simple
[handler_syslog]
class: handlers.SysLogHandler
args: [('syslogserver.example.org', handlers.SYSLOG_UDP_PORT), handlers.SysLogHandler.LOG_USER]
formatter: detailed
[logger_root]
level: INFO
handlers: console
[logger_SmimeX509Validation]
level: ERROR
qualname: SmimeX509Validation
handlers: syslog