Add logging config to pagure's configuration file

This commit is contained in:
Pierre-Yves Chibon 2017-05-16 20:16:11 +02:00
parent 896fa8079a
commit 17698fc275

View file

@ -218,3 +218,45 @@ SSH_KEYS = {
OLD_VIEW_COMMIT_ENABLED = True
PAGURE_CI_SERVICES=['jenkins']
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'standard': {
'format': '%(asctime)s [%(levelname)s] %(name)s: %(message)s'
},
},
'handlers': {
'console': {
'level': 'INFO',
'formatter': 'standard',
'class': 'logging.StreamHandler',
'stream': 'ext://sys.stdout',
},
},
# The root logger configuration; this is a catch-all configuration
# that applies to all log messages not handled by a different logger
'root': {
'level': 'INFO',
'handlers': ['console'],
},
'loggers': {
'pagure': {
'handlers': ['console'],
'level': 'DEBUG',
'propagate': False
},
'flask': {
'handlers': ['console'],
'level': 'INFO',
'propagate': False
},
'sqlalchemy': {
'handlers': ['console'],
'level': 'WARN',
'propagate': False
},
}
}