Skip to main content

A beautiful and colorful logging utility for Python

Project description

PyLogr

A beautiful and colorful logging utility for Python that provides a modern, terminal-friendly logging experience with rich formatting and status indicators.

Features

  • 🎨 Beautiful colored output with ANSI color codes
  • ⏰ Timestamp for each log entry
  • 🏷️ Customizable application name
  • 🔄 58+ predefined status types with appropriate colors
  • 📝 Clean and modern formatting
  • 🎯 Easy to use API

Installation

pip install pylogr

Quick Start

from pylogr import PyLogr

# Create a logger instance with your app name
logger = PyLogr("MyApp")

# Log messages with different statuses
logger.log("Application started", PyLogr.STARTED)
logger.log("Task completed successfully", PyLogr.COMPLETED)
logger.log("Warning: Resource running low", PyLogr.WARNING)
logger.log("Critical error occurred", PyLogr.CRITICAL)

Available Status Types

PyLogr comes with 58+ predefined status types, each with its own color:

Basic Statuses

  • SUCCESS
  • ERROR
  • INFO
  • WARNING
  • DEBUG
  • CRITICAL
  • DEFAULT

Process Statuses

  • COMPLETED
  • PENDING
  • FAILED
  • STARTED
  • STOPPED
  • RUNNING
  • QUEUED
  • CANCELLED
  • TIMEOUT
  • RETRYING

System Statuses

  • MAINTENANCE
  • UPGRADED
  • DOWNGRADED
  • CONNECTED
  • DISCONNECTED
  • SYNCED
  • DESYNCED

State Statuses

  • ENABLED
  • DISABLED
  • ACTIVE
  • INACTIVE
  • ONLINE
  • OFFLINE
  • BUSY
  • IDLE

Security Statuses

  • LOCKED
  • UNLOCKED
  • VERIFIED
  • UNVERIFIED
  • AUTHORIZED
  • UNAUTHORIZED

And many more! Each status is color-coded for easy visual identification.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

pylogr-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

pylogr-0.1.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pylogr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 021656b83267a5ef70f354abdbfa140a3704a4a46d0ea6912bfb2934249d2f28
MD5 218c333bb50d31a21657b08c48d7d157
BLAKE2b-256 1746864c1bf61e2ffcd7b69cc39bd498186216e7b4abf9be834a113bf4f3c4e9

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pylogr-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2a17b3e086b985c56f54a5f75a58e14d598bb7f68084d96ec102b1115769dce
MD5 6fc9b543b1eae381fc0301585283cb91
BLAKE2b-256 82ba995d12ef2905598e0e8c1c2bd4f3a98291738783d2ca7709730bc0a70a68

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