refactor: add trace method to logging.Logger for enhanced logging capabilities
This commit is contained in:
@@ -20,7 +20,7 @@ def _trace(self: logging.Logger, message: str, *args: Any, **kwargs: Any) -> Non
|
|||||||
self._log(TRACE_LEVEL, message, args, **kwargs)
|
self._log(TRACE_LEVEL, message, args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
setattr(logging.Logger, "trace", _trace)
|
logging.Logger.trace = _trace # type: ignore[attr-defined]
|
||||||
|
|
||||||
_STANDARD_LOG_RECORD_ATTRS = {
|
_STANDARD_LOG_RECORD_ATTRS = {
|
||||||
"args",
|
"args",
|
||||||
|
|||||||
Reference in New Issue
Block a user