-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlog_conf.conf
More file actions
37 lines (29 loc) · 823 Bytes
/
log_conf.conf
File metadata and controls
37 lines (29 loc) · 823 Bytes
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
[loggers]
keys=root, main
[logger_root]
level=DEBUG
handlers=timedRotatingFileHandler
[logger_main]
handlers = console
level = DEBUG
qualname = main
propagate = 0
[formatters]
keys=timedRotatingFormatter, std_out
[formatter_timedRotatingFormatter]
format=%(asctime)s : %(levelname)s : %(module)s : %(funcName)s : %(lineno)d :: Log Message : %(message)s
datefmt=%Y-%m-%d %H:%M:%S
[handlers]
keys=timedRotatingFileHandler, console
[handler_timedRotatingFileHandler]
class=handlers.TimedRotatingFileHandler
level=WARN
formatter=timedRotatingFormatter
args=('./logs/log.log', 'H', 1, 5)
[handler_console]
class = logging.StreamHandler
level = DEBUG
formatter = std_out
[formatter_std_out]
format=%(asctime)s : %(levelname)s : %(module)s : %(funcName)s : %(lineno)d :: Log Message : %(message)s
datefmt=%Y-%m-%d %H:%M:%S