refactor: add trace method to logging.Logger for enhanced logging capabilities

This commit is contained in:
Abhimanyu Saharan
2026-02-09 02:58:59 +05:30
parent 099415cca3
commit 752cf48a0e

View File

@@ -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",