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 "d4rklogger[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.
Release
The release script bumps the version in pyproject.toml, rebuilds the package, checks the artifacts, and uploads them to PyPI.
Set your token in the environment first:
export PYPI_API_TOKEN="your-token"
On Windows cmd:
set PYPI_API_TOKEN=your-token
Release the next patch version automatically:
python scripts/release.py
Release a specific version:
python scripts/release.py 0.1.1
Preview the next release without changing files or uploading:
python scripts/release.py --dry-run
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
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.1.tar.gz.
File metadata
- Download URL: d4rklogger-0.1.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c94a49af647ca7f509fbbff4be7d20fd859ac4721ac45cc640b1af04f1590b1
|
|
| MD5 |
7acb2f5428eadc9c8c7e6a3f5ab1c661
|
|
| BLAKE2b-256 |
2e1eaf8071c4246adc2662cd0892992e220fb2514f40e04fe574c095b8fed99b
|
File details
Details for the file d4rklogger-0.1.1-py3-none-any.whl.
File metadata
- Download URL: d4rklogger-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.3 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 |
cbc4c4d821ee7a88515a985a6418ee8d0ca7b31d4e60c10c57af190a5dc5f378
|
|
| MD5 |
62ae747d40871a1e75efae2dae8941e2
|
|
| BLAKE2b-256 |
834eec7073457b6ca86feabf8081b071aa91d3a8f2b3bba15223213ae07cabf1
|