Skip to content

Instantly share code, notes, and snippets.

@WaltHP
Created November 10, 2015 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WaltHP/e9b71e0ea1b1d9097762 to your computer and use it in GitHub Desktop.
Save WaltHP/e9b71e0ea1b1d9097762 to your computer and use it in GitHub Desktop.
[DEFAULT]
debug = True
verbose = True
logging_exception_prefix = %(color)s%(asctime)s.%(msecs)03d TRACE %(name)s %(instance)s
logging_debug_format_suffix = from (pid=%(process)d) %(funcName)s %(pathname)s:%(lineno)d
logging_default_format_string = %(color)s%(levelname)s %(name)s [-%(color)s] %(instance)s%(color)s%(message)s
logging_context_format_string = %(color)s%(levelname)s %(name)s [%(request_id)s %(user_id)s %(project_id)s%(color)s] %(instance)s%(color)s%(message)s
[loggers]
keys = root, brick
[handlers]
keys = stdout, null
[logger_root]
level = DEBUG
handlers = stdout
[logger_brick]
level = DEBUG
handlers = stdout
qualname = ass
[handler_stdout]
class = StreamHandler
args = (sys.stdout,)
formatter = context
[handler_null]
class = logging.NullHandler
formatter = default
args = ()
[formatter_context]
class = oslo_log.formatters.ContextFormatter
[formatter_default]
format = %(message)s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment