You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add TRACE log level and patch_logging() (#20)
* feat: add TRACE log level and patch_logging()
Port TRACE log level support from appier (hivesolutions/appier#84) to colony.
Adds TRACE constant (logging.DEBUG - 5 = 5) and SILENT constant
(logging.CRITICAL + 1 = 51) for fine-grained protocol-level debugging.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat: add trace() method and *args/**kwargs to PluginManager log methods
Adds trace() convenience method to PluginManager and makes all log
methods (debug, info, warning, error, critical) accept *args and
**kwargs for lazy evaluation support.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat: add TRACE-aware logging format with pathname and lineno
When the log level is set to TRACE, automatically switches to a more
detailed format that includes file path and line number for fine-grained
debugging of low-level operations.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* chore: new module starting
* fix: handle GLOBAL_CONFIG override for TRACE logging format
The GLOBAL_CONFIG always has a hardcoded logging_format value, so the
.get() default never triggers. Added explicit check to switch to the
trace format when the config value matches the default and the level
is TRACE.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* chore: new logging format for trace
* chore: new black format
* chore: new logging format for trace
Passes stacklevel=2 in all PluginManager log methods (trace, debug,
info, warning, error, critical) so that pathname and lineno in the
format string reflect the actual caller, not the internal log method.
Guards stacklevel for Python < 3.8 where it is not supported, and
makes DEFAULT_LOGGING_FORMAT_TRACE conditional on Python 3.8+.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix: trace reference
* fix: small spelling error in logging_util.py docstring
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments