28 lines
589 B
Python
28 lines
589 B
Python
|
|
import sys
|
|
|
|
|
|
LOGGING_CONFIG = {
|
|
'version': 1,
|
|
'disable_existing_loggers': False,
|
|
'loggers': {
|
|
'vk': {
|
|
'level': 'INFO',
|
|
'handlers': ['vk-stdout'],
|
|
'propagate': False,
|
|
},
|
|
},
|
|
'handlers': {
|
|
'vk-stdout': {
|
|
'class': 'logging.StreamHandler',
|
|
'stream': sys.stdout,
|
|
'formatter': 'vk-verbose',
|
|
},
|
|
},
|
|
'formatters': {
|
|
'vk-verbose': {
|
|
'format': '%(asctime)s %(name) -5s %(module)s:%(lineno)d %(levelname)s: %(message)s',
|
|
},
|
|
},
|
|
}
|