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.2.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.2.tar.gz.
File metadata
- Download URL: logorator-1.0.2.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 |
7838a298296775992cb43558391c05017bfae28f8c55c60695d284ffa586fe73
|
|
| MD5 |
a0ee6458ce7db1155f837c25271fd244
|
|
| BLAKE2b-256 |
a4b424b277dcd41f6af60b13d067124369a6e35a6299799ebf204eceeb51e7df
|
File details
Details for the file logorator-1.0.2-py3-none-any.whl.
File metadata
- Download URL: logorator-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.7 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 |
e31c2d07bf4bc6fec9f80de9cd1e033bfd1e66dd825cc1f2988df92458b2a572
|
|
| MD5 |
cc0ac076bc1abf7e0f32141649bc01dc
|
|
| BLAKE2b-256 |
5efc3de5d72ee596660b4eafc6ef5416e3ec9d3451a10e804ce1fdc4e9b55952
|