mirror of https://github.com/rq/rq.git
20 lines
625 B
Python
20 lines
625 B
Python
# 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
|
|
},
|
|
}
|