Skip to main content

An enhanced wrapper for Loguru that supports multiple named loggers with automatic file output, tagging, and smart defaults.

Project description

fastloguru

fastloguru is a wrapper around Loguru that provides:

  • Named loggers with automatic file naming
  • Dual logging files: one plain, one color-coded
  • Preconfigured format, rotation, and retention
  • Cross-platform logging directories
  • Optional log tagging for filtering

Installation

pip install fastloguru

Usage

from fastloguru import get_logger

log1 = get_logger("api")
log2 = get_logger("auth", prefix="server1", tag="auth")

log1.info("API started")
log2.error("Authentication failed")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastloguru-0.1.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastloguru-0.1.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file fastloguru-0.1.0.tar.gz.

File metadata

  • Download URL: fastloguru-0.1.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for fastloguru-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ec2f516d6df3ad87b743e0825156b1893a9942671f8c3a3c11eecfc8eaa7aa61
MD5 468535019f6e7720a9bdfcd5668df961
BLAKE2b-256 9a4ee679576a2fea1a8840edbd79e64c62b463b7af3a881b119f9c162aa1607c

See more details on using hashes here.

File details

Details for the file fastloguru-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: fastloguru-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for fastloguru-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a328fdad735a1820603b0c8ab9be217f0121cf3a6e0b8fe56d442924a17b290
MD5 b8f7c5f829adf6a4d8b9e7ff51027e38
BLAKE2b-256 7967b1fc368218a100d41f7145866cb4fa6c210168a4380dc8604eab912ed505

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page