Describe the Bug
logger.catch() in errortools.logging submodule dosn't colored error traceback.
Steps to Reproduce
Steps to reproduce the behavior:
Go to '...'
Run '....' Run code in README:
from errortools.logging import logger
logger.info("Server started on port {}", 8080)
logger.add("app.log", rotation=10_485_760, retention=5)
with logger.catch():
int("not a number") # logged + suppressed
- See error:
2026-05-29 10:55:43.650 | ℹ INFO | <string>:<module>:3 - Server started on port 8080
2026-05-29 10:55:43.650 | ✘ ERROR | base:__exit__:392 - An error has been caught in function '<module>', process '5756', thread 'MainThread'
Traceback (most recent call last):
File "<string>", line 6, in <module>
int('not a number')
~~~^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: 'not a number'
The Traceback has no color!
Environment
- OS: [e.g. Ubuntu 22.04, Windows 11, macOS] It's irrelevant
- Python version: [e.g. 3.10, 3.11, 3.12] It's irrelevant
Additional Context
Nothing
Describe the Bug
logger.catch()inerrortools.loggingsubmodule dosn't colored error traceback.Steps to Reproduce
Steps to reproduce the behavior:
Go to '...'Run '....'Run code in README:The Traceback has no color!
Environment
- OS: [e.g. Ubuntu 22.04, Windows 11, macOS]It's irrelevant- Python version: [e.g. 3.10, 3.11, 3.12]It's irrelevantAdditional Context
Nothing