Metadata-Version: 2.4
Name: d4rklogger
Version: 0.1.1
Summary: Simple timezone-aware logging helpers with rotating file output.
Author: D4rk-TG
Keywords: logging,logger,timezone
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Operating System :: OS Independent
Classifier: Topic :: System :: Logging
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Provides-Extra: colors
Requires-Dist: colorama>=0.4.6; extra == "colors"

# d4rklogger

Lightweight timezone-aware logger setup with:

- rotating daily log files
- optional colored console output
- configurable timezone offset through `TIME_ZONE`

## Install

```bash
pip install d4rklogger
```

Optional color support:

```bash
pip install "d4rklogger[colors]"
```

## Usage

```python
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:

```bash
export PYPI_API_TOKEN="your-token"
```

On Windows `cmd`:

```bat
set PYPI_API_TOKEN=your-token
```

Release the next patch version automatically:

```bash
python scripts/release.py
```

Release a specific version:

```bash
python scripts/release.py 0.1.1
```

Preview the next release without changing files or uploading:

```bash
python scripts/release.py --dry-run
```
