Answers to frequently asked questions about Chromologger’s behavior, limitations, and roadmap.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Dev2Forge/chromologger/llms.txt
Use this file to discover all available pages before exploring further.
Which Python versions are supported?
Which Python versions are supported?
pyproject.toml.Does Chromologger support log rotation?
Does Chromologger support log rotation?
app_20250115.log, giving you one file per day without any additional tooling.Is Chromologger thread-safe?
Is Chromologger thread-safe?
Logger instance are not guaranteed to be safe and may produce corrupted or interleaved log entries.Safe alternative: Create a separate Logger instance with a distinct file path per thread.Does it support log levels like WARNING, DEBUG, or CRITICAL?
Does it support log levels like WARNING, DEBUG, or CRITICAL?
| Method | Level written to file |
|---|---|
logger.log(msg) | [INFO] |
logger.log_e(e) | [ERROR] |
WARNING, DEBUG, and CRITICAL levels is planned for a future release.logger.log('[WARNING] Disk usage above 90%') — though this won’t affect filtering or formatting behavior.Can I use Chromologger as a context manager (with statement)?
Can I use Chromologger as a context manager (with statement)?
__enter__ / __exit__ support is on the roadmap. Until then, use a try/finally block to guarantee that close() is always called, even if an exception occurs.What happens if I log to the same file from two Logger instances?
What happens if I log to the same file from two Logger instances?
Logger instances open the file in append mode, so entries written by each will be appended sequentially to the same file. No data is lost under sequential access patterns.However, under concurrent workloads (multiple threads or processes writing simultaneously), entries may be interleaved in unexpected order because Chromologger does not coordinate between instances. For concurrent scenarios, prefer separate files per logger — see the thread-safety question above.Where is the internal module log file?
Where is the internal module log file?
log.log file located inside the Chromologger package directory (not your project directory).The exact path is printed to the console by chromolog whenever an internal error occurs:How do I suppress the console output when calling log()?
How do I suppress the console output when calling log()?
chromolog.Print is currently always enabled. Each call to logger.log() prints a message pointing to the log file path, and internal errors also print to the console.A debug-mode flag to suppress this output is on the roadmap. At present, there is no official way to silence it.Can I export logs to JSON or CSV?
Can I export logs to JSON or CSV?
log().Where can I report bugs or request features?
Where can I report bugs or request features?
- Report a bug — open an issue at github.com/Dev2Forge/chromologger/issues
- Request a feature — start a discussion in the repository discussions
- Contribute code — submit a pull request at github.com/Dev2Forge/chromologger/pulls