A decorator-based logging library with hierarchical structure, ANSI color support, and configurable outputs.
Project description
logorator
A decorator-based logging library for Python, featuring hierarchical structure, ANSI color support, and configurable outputs.
Installation
pip install logorator
Quick Start
from logorator import Logger
@Logger()
def example_function(x, y):
return x + y
example_function(3, 5)
# Output:
# Running example_function
# 3
# 5
# Finished example_function Time elapsed: 0.10 ms
Features
- Function Call Logging: Logs function calls, arguments, and execution times.
- Custom Notes: Add notes to your logs.
- ANSI Color Support: Makes console logs visually appealing.
- File Output: Write logs to a file, creating directories if needed.
- Thread-Safe Logging: Handles nested and concurrent function calls.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
logorator-1.0.1.tar.gz
(3.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file logorator-1.0.1.tar.gz.
File metadata
- Download URL: logorator-1.0.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1086b9444174ca8b939b60e95de72d5f15e13602bce05089a72b36e0946bf9b5
|
|
| MD5 |
479226e69ac471aaceba084902ff34ac
|
|
| BLAKE2b-256 |
33fac96b12ee47ea5631b8b0a81b84e9ffe8809d4ea39296938aecc8c93dd837
|
File details
Details for the file logorator-1.0.1-py3-none-any.whl.
File metadata
- Download URL: logorator-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cf370a6c361e3601eb510de66326cbef033dcbcbc4423450c9655c295e32097
|
|
| MD5 |
89814d3bdbff7bf6bf49130974c528e9
|
|
| BLAKE2b-256 |
ff384377dfffc1e9aea43f7903a2617f3ed4935da402bc38440dec82aa5e6538
|