Commit 564e5159 authored by ssrq's avatar ssrq

[cdist.log] Define custom log functions on logging.Logger

Define out custom logger functions on logging.Logger so that they are passed on
to all other loggers.
parent f730aa76
Pipeline #4007 passed with stage
in 2 minutes and 25 seconds
......@@ -44,7 +44,7 @@ def _verbose(msg, *args, **kwargs):
logging.log(logging.VERBOSE, msg, *args, **kwargs)
logging.verbose = _verbose
logging.Logger.verbose = _verbose
logging.TRACE = logging.DEBUG - 5
logging.addLevelName(logging.TRACE, 'TRACE')
......@@ -54,7 +54,7 @@ def _trace(msg, *args, **kwargs):
logging.log(logging.TRACE, msg, *args, **kwargs)
logging.trace = _trace
logging.Logger.trace = _trace
class CdistFormatter(logging.Formatter):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment