-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlogging.conf
44 lines (35 loc) · 853 Bytes
/
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
[loggers]
keys=root,fileExample,consoleExample
[handlers]
keys=consoleHandler,FileHandler
[formatters]
keys=fileFormatter, consoleFormatter
[logger_root]
level=DEBUG
handlers=consoleHandler,FileHandler
[logger_fileExample]
level=DEBUG
handlers=FileHandler
qualname=fileExample
propagate=0
[logger_consoleExample]
level=INFO
handlers=consoleHandler
qualname=consoleExample
propagate=0
[handler_consoleHandler]
class=StreamHandler
level=INFO
formatter=consoleFormatter
args=(sys.stdout,)
[handler_FileHandler]
class=FileHandler
level=DEBUG
formatter=fileFormatter
args=("logging.log", "w")
[formatter_fileFormatter]
format=%(asctime)s - %(filename)s:%(lineno)d - %(levelname)s - %(message)s
datefmt=%Y-%m-%d %H:%M:%S
[formatter_consoleFormatter]
format=%(asctime)s - %(filename)s:%(lineno)d - %(levelname)s - %(message)s
datefmt=%Y-%m-%d %H:%M:%S