-
Notifications
You must be signed in to change notification settings - Fork 4
/
logging.conf
55 lines (44 loc) · 1.11 KB
/
logging.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
44
45
46
47
48
49
50
51
52
53
54
[formatters]
keys: simple, time_simple
[handlers]
keys: console, file
[loggers]
keys: root, app_cfg, distiller.thinning, apputils.model_summaries
[formatter_simple]
format: %(message)s
[formatter_time_simple]
format: %(asctime)s - %(message)s
[handler_console]
class: StreamHandler
propagate: 0
args: []
formatter: simple
[handler_file]
class: FileHandler
mode: 'w'
args=('%(logfilename)s', 'w')
formatter: time_simple
[logger_root]
level: INFO
propagate: 1
handlers: console, file
[logger_app_cfg]
# Use this logger to log the application configuration and execution environment
level: DEBUG
qualname: app_cfg
propagate: 0
handlers: file
# Example of adding a module-specific logger
# Do not forget to add distiller.thinning to the list of keys in section [loggers]
[logger_distiller.thinning]
level: INFO
qualname: distiller.thinning
propagate: 0
handlers: console, file
# Example of adding a module-specific logger
# Do not forget to add apputils.model_summaries to the list of keys in section [loggers]
[logger_apputils.model_summaries]
level: INFO
qualname: apputils.model_summaries
propagate: 0
handlers: console, file