Simple timezone-aware logging helpers with rotating file output.
Project description
d4rklogger
Lightweight timezone-aware logger setup with:
- rotating daily log files
- optional colored console output
- configurable timezone offset through
TIME_ZONE
Install
pip install d4rklogger
Optional color support:
pip install ".[colors]"
Usage
from log import setup_logger
log = setup_logger("app")
log.info("hello")
Set the timezone offset with an environment variable such as TIME_ZONE=05:30 or TIME_ZONE=-04:00.
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
d4rklogger-0.1.0.tar.gz
(3.0 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 d4rklogger-0.1.0.tar.gz.
File metadata
- Download URL: d4rklogger-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
031a1a4d5f0f0ac5180eb535f8a0cf52fcf954db94d5e265d43c668ae4f4dc93
|
|
| MD5 |
de22dbc8e34e9fc0438a560214e64932
|
|
| BLAKE2b-256 |
a0adc22d9ca21040cc9f3236df4bd219bcf7e2e72166d0b2cb550975061b0a31
|
File details
Details for the file d4rklogger-0.1.0-py3-none-any.whl.
File metadata
- Download URL: d4rklogger-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
738105344b24508609c9c0b131cce9127556f1aad0fdc337a69f0763ecf96788
|
|
| MD5 |
419ad17cf1af27740dced79f320e2d9b
|
|
| BLAKE2b-256 |
f588617ab12282ea9d378a89b689132ba0e070ff18aa30d560ad37e283293c5d
|