forked from JDAI-CV/FaceX-Zoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
logging.conf
40 lines (32 loc) · 932 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
[loggers] # loggers object list
keys = root, sdk, api
[handlers] # handlers object list
keys = consoleHandlers, fileHandlers
[formatters] # formatters list
keys = fmt
[logger_root]
level = DEBUG
handlers = consoleHandlers, fileHandlers
[logger_sdk] # sdk logger
level = DEBUG
handlers = fileHandlers
qualname = sdk
propagate = 0
[logger_api] # api logger
level = DEBUG
handlers = consoleHandlers
qualname = api
propagate = 0
[handler_consoleHandlers]# consoleHandlers.
class = StreamHandler
level = DEBUG
formatter = fmt
args = (sys.stdout,)
[handler_fileHandlers]]# fileHandlers
class = logging.handlers.RotatingFileHandler
level = DEBUG
formatter = fmt
args = ('logs/sdk.log', 'a', 10000, 3, 'UTF-8')
[formatter_fmt] # fmt format
format = %(levelname)s %(asctime)s %(filename)s: %(lineno)d] %(message)s
datefmt = %Y-%m-%d %H:%M:%S