Queue-based rotating file and console logging
Project description
player-logger
Queue-based rotating file and console logging for Python.
Install
pip install player-logger
Local development:
uv sync
uv pip install -e .
Usage
from player_logger import init_logging, get_logger
init_logging()
logger = get_logger(__name__)
logger.info("hello")
Custom options:
init_logging(
level="DEBUG",
log_dir="logs",
log_file="myapp.log",
console_output=True,
file_output=True,
)
Publish
uv build
UV_PUBLISH_TOKEN="pypi-..." uv publish
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
player_logger-0.1.0.tar.gz
(2.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 player_logger-0.1.0.tar.gz.
File metadata
- Download URL: player_logger-0.1.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6bef02cc88ee3ea0b6d6768819738fb590eb0cc0f0bbd141738679d28b9c4c7
|
|
| MD5 |
de9422bf037148da1b28c02d6e565eff
|
|
| BLAKE2b-256 |
f090f80f022e13d66ef57bb18162cfc875d26f40e113c9c3d228269ffbd111d6
|
File details
Details for the file player_logger-0.1.0-py3-none-any.whl.
File metadata
- Download URL: player_logger-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"CachyOS Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6c2de3c73a48b39704599d5c28d50a340d292cc5ffd1e582382e4054399afdf
|
|
| MD5 |
80685ae1db4bea95a90d0d9aff1c9dc0
|
|
| BLAKE2b-256 |
71b85694237566339c07a16bee8a4cae3ee3fa41435c1b798ea113b13a1b732f
|