mirror of https://github.com/peter4431/rq.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
625 B
Python
20 lines
625 B
Python
2 years ago
|
# example config taken from <https://stackoverflow.com/a/7507842/784804>
|
||
|
DICT_CONFIG = {
|
||
|
'version': 1,
|
||
|
'disable_existing_loggers': False,
|
||
|
'formatters': {
|
||
|
'standard': {'format': 'MY_LOG_FMT: %(asctime)s [%(levelname)s] %(name)s: %(message)s'},
|
||
|
},
|
||
|
'handlers': {
|
||
|
'default': {
|
||
|
'level': 'DEBUG',
|
||
|
'formatter': 'standard',
|
||
|
'class': 'logging.StreamHandler',
|
||
|
'stream': 'ext://sys.stdout', # Default is stderr
|
||
|
},
|
||
|
},
|
||
|
'loggers': {
|
||
|
'root': {'handlers': ['default'], 'level': 'DEBUG', 'propagate': False}, # root logger
|
||
|
},
|
||
|
}
|