-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlog_config.py
35 lines (34 loc) · 898 Bytes
/
log_config.py
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
__all__ = ["LOG_CONFIG"]
LOG_CONFIG = {
'disable_existing_loggers': False,
'version': 1,
'formatters': {
'short': {
'format': '%(asctime)s %(levelname)s %(name)s: %(message)s'
},
# this is the concrete info of log format
'concrete': {
'format': '%(asctime)s %(levelname)s %(funcName)s %(lineno)d %(name)s: ' \
'%(message)s %(funcName)s ' \
'%(pathname)s'
}
},
'handlers': {
'console': {
'level': 'DEBUG',
'formatter': 'short',
'class': 'logging.StreamHandler',
},
},
'loggers': {
'': {
'handlers': ['console'],
'level': 'DEBUG',
},
'plugins': {
'handlers': ['console'],
'level': 'INFO',
'propagate': False
}
},
}