Metadata-Version: 2.4
Name: player-logger
Version: 0.1.0
Summary: Queue-based rotating file and console logging
Author-email: p1ayer <p1ayer222@qq.com>
License: Proprietary
Keywords: logging,queue,rotating
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: System :: Logging
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# player-logger

Queue-based rotating file and console logging for Python.

## Install

```bash
pip install player-logger
```

Local development:

```bash
uv sync
uv pip install -e .
```

## Usage

```python
from player_logger import init_logging, get_logger

init_logging()
logger = get_logger(__name__)
logger.info("hello")
```

Custom options:

```python
init_logging(
    level="DEBUG",
    log_dir="logs",
    log_file="myapp.log",
    console_output=True,
    file_output=True,
)
```

## Publish

```bash
uv build
UV_PUBLISH_TOKEN="pypi-..." uv publish
```
