Skip to main content

Pretty-Loguru 🎨

Python Version PyPI Version License

An enhanced Python logging library built on Loguru, integrating Rich and ASCII art to make logging more elegant and intuitive.

✨ Features

  • 🎨 Rich Block Logging - Display structured logs using Rich panels
  • 🎯 ASCII Art Headers - Generate eye-catching ASCII art titles
  • 🔥 One-Click Setup - Simple configuration for both file and console logging
  • 🚀 FastAPI Integration - Perfect integration with FastAPI and Uvicorn
  • 📊 Preset Configurations - Best practices for development, production, and testing
  • 🛠️ Highly Customizable - Support for custom formats, colors, and rotation strategies

📦 Installation

pip install pretty-loguru

🚀 Quick Start

from pretty_loguru import create_logger

# Create logger - it's this simple!
logger = create_logger("my_app")

# Basic logging
logger.info("Application started")
logger.success("Operation completed successfully")
logger.warning("This is a warning")
logger.error("An error occurred")

# Rich visual blocks
logger.block("System Status", "Everything is running smoothly", border_style="green")

# ASCII art headers
logger.ascii_header("WELCOME", font="slant")

# With file output
logger = create_logger("my_app", log_path="logs", level="INFO")

📚 Want more? Check out our User Guide for advanced features like configuration templates, multi-logger management, and framework integrations.

📖 Documentation

Full documentation available at: https://joneshong.github.io/pretty-loguru/

🤝 Contributing

Issues and Pull Requests are welcome!

📄 License

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

Metadata

Release files for pretty-loguru 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pretty-loguru 1.2.0
File Size Uploaded
pretty_loguru-1.2.0.tar.gz 57.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pretty-loguru 1.2.0
File Interpreter ABI Platform
pretty_loguru-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 128.4 kB

Release files / pretty_loguru-1.2.0.tar.gz

Download URL pretty_loguru-1.2.0.tar.gz
Size 57.5 kB
Tags Source
SHA-256 checksum
How to use checksums
0075bdadbf608c91c5171b2f903ca66017f81c52c9979440c412398e9e8ca04f
BLAKE2b-256 checksum
How to use checksums
22644e82e8057ea54a91ebf7ce896f2b5bb04942deadc40f63bfbcbd3382021d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.0

Release files / pretty_loguru-1.2.0-py3-none-any.whl

Download URL pretty_loguru-1.2.0-py3-none-any.whl
Size 70.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6d6a3fd49c03f17e7699119c9901d1db340e67830ff4106bdd2a09219be9570e
BLAKE2b-256 checksum
How to use checksums
ef8aff2ef2f453d66b6455a2664b56b2eaa3c65785563690fc509f27a7b3875f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.0

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.2.9

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page