Skip to content

Conversation

@garyvdm
Copy link
Contributor

@garyvdm garyvdm commented Oct 15, 2025

This uses the colorized tracebacks that were introduced in python3.13.

E.G.:

import logging
import colorlog

fmt = "{log_color}{levelname} {name}: {message}"
colorlog.basicConfig(level=logging.DEBUG, style="{", format=fmt, stream=None)

log = logging.getLogger()

try:
    raise Exception("foo")
except Exception:
    log.exception("Error: ")
image

@borntyping borntyping merged commit f4c0980 into borntyping:main Oct 16, 2025
14 checks passed
@borntyping
Copy link
Owner

borntyping commented Oct 16, 2025

Thanks, this is a great addition! Released in 6.10.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants