[PR #2699] Add chromologger module to 'Logging' section #2012

Open
opened 2025-11-06 13:27:43 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/vinta/awesome-python/pull/2699
Author: @tutosrive
Created: 5/7/2025
Status: 🔄 Open

Base: masterHead: add-chromologger


📝 Commits (2)

  • 105577b Add chromologger module to 'Logging' section
  • d066879 Fix link repo

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 README.md (+1 -0)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/vinta/awesome-python/pull/2699 **Author:** [@tutosrive](https://github.com/tutosrive) **Created:** 5/7/2025 **Status:** 🔄 Open **Base:** `master` ← **Head:** `add-chromologger` --- ### 📝 Commits (2) - [`105577b`](https://github.com/vinta/awesome-python/commit/105577b41c6a0737a489b837b0328485d771f9ad) Add `chromologger` module to 'Logging' section - [`d066879`](https://github.com/vinta/awesome-python/commit/d0668799aaee7199d9b5b230f5908a37e9ff4914) Fix link repo ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+1 -0) </details> ### 📄 Description ## 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 ```shell 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-06 13:27:43 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-python#2012