Skip to content

Add chromologger module to 'Logging' section #2699

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tutosrive
Copy link

What is this Python project?

chromologger is a lightweight module for creating logs in Python in a simple, structured way. Its main features are:

  • Quick instantiation: create a Logger with a single parameter (a file path).
  • Readable format: each entry includes a timestamp, level (INFO, ERROR) and message in one line, using log(msg: str) for any message and log_e(e: Exception) as a shortcut to record exceptions with their stack trace.
  • Installation via pypi.org
pip install chromologger

What’s the difference between this Python project and similar ones?

Aspect Chromologger Loguru Structlog
Installation pip install chromologger pip install loguru – plugin-rich pip install structlog – requires setup
Configuration Zero upfront configuration, ready to use Optional: decorate functions or add sinks Define processors and wrappers manually
Format Fixed: [timestamp] - LEVEL - message with log() for general entries and log_e() for exceptions Highly customizable via f-strings Structured output: key/value or JSON
Approach Basic, fast logging for small scripts/apps Advanced logging for medium/large projects Structured logging in complex applications

Anyone who agrees with this pull request could submit an Approve review to it.

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