Merge "Include logging level to log message by default"

This commit is contained in:
Jenkins 2017-05-02 23:26:16 +00:00 committed by Gerrit Code Review
commit d3a2d7205a

View File

@ -496,11 +496,18 @@ LOGGING = {
# if nothing is specified here and disable_existing_loggers is True, # if nothing is specified here and disable_existing_loggers is True,
# django.db.backends will still log unless it is disabled explicitly. # django.db.backends will still log unless it is disabled explicitly.
'disable_existing_loggers': False, 'disable_existing_loggers': False,
# If apache2 mod_wsgi is used to deploy OpenStack dashboard
# timestamp is output by mod_wsgi. If WSGI framework you use does not
# output timestamp for logging, add %(asctime)s in the following
# format definitions.
'formatters': { 'formatters': {
'console': {
'format': '%(levelname)s %(name)s %(message)s'
},
'operation': { 'operation': {
# The format of "%(message)s" is defined by # The format of "%(message)s" is defined by
# OPERATION_LOG_OPTIONS['format'] # OPERATION_LOG_OPTIONS['format']
'format': '%(asctime)s %(message)s' 'format': '%(message)s'
}, },
}, },
'handlers': { 'handlers': {
@ -512,6 +519,7 @@ LOGGING = {
# Set the level to "DEBUG" for verbose output logging. # Set the level to "DEBUG" for verbose output logging.
'level': 'INFO', 'level': 'INFO',
'class': 'logging.StreamHandler', 'class': 'logging.StreamHandler',
'formatter': 'console',
}, },
'operation': { 'operation': {
'level': 'INFO', 'level': 'INFO',