-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlogging.conf
40 lines (31 loc) · 894 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
######## SETUP ####################################################################
[loggers]
keys=root,flog
[handlers]
keys=fhand,consoleHandler
[formatters]
keys=simpleFormatter
######## LOGGERS ###################################################################
[logger_root]
level=DEBUG
handlers=consoleHandler
[logger_flog]
level=DEBUG
handlers=fhand
qualname=flog
propagate=0
######## HANDLERS ####################################################################
[handler_fhand]
class= FileHandler
args=('logs/main.log','a')
level=DEBUG
formatter=simpleFormatter
[handler_consoleHandler]
class=StreamHandler
level=DEBUG
formatter=simpleFormatter
args=(sys.stdout,)
######## FORMATTERS ####################################################################
[formatter_simpleFormatter]
format=%(asctime)s - %(name)s - %(levelname)s - line:%(lineno)s - %(message)s
datefmt=