Stdlib Integration
Use Logly's InterceptHandler to redirect all standard library logging calls through Logly, unifying output across frameworks.
Example
python
--8<-- "examples/stdlib_integration.py"How It Works
- Pass
InterceptHandler()tologging.basicConfig()to capture all stdlib log records. - Third-party libraries (uvicorn, Django, Flask) that use
loggingwill automatically route through Logly. - You can configure individual loggers with
logging.getLogger("name")and their output flows through Logly's formatting and filtering.
