A simple and flexible logging library for Python
Project description
pypi_zns_logging
A simple and flexible logging library for Python
Installation
pip install pypi-zns-logging
Usage
from zns_logging import get_logger
logger = get_logger(__name__, logging_level="DEBUG")
logger.debug("This is a debug message")
logger.info("This is an info message")
logger.warning("This is a warning message")
logger.error("This is an error message")
logger.critical("This is a critical message")
Output
[2025-01-26 23:22:06] [DEBUG ] [__main__]: This is a debug message
[2025-01-26 23:22:06] [INFO ] [__main__]: This is an info message
[2025-01-26 23:22:06] [WARNING ] [__main__]: This is a warning message
[2025-01-26 23:22:06] [ERROR ] [__main__]: This is an error message
[2025-01-26 23:22:06] [CRITICAL] [__main__]: This is a critical message
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
zns_logging-1.0.2.tar.gz
(7.8 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 zns_logging-1.0.2.tar.gz.
File metadata
- Download URL: zns_logging-1.0.2.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12a5d8d4c35e73e24d4e2226beede7f793e5dd7660bf69cb13fe885c1b0b11bc
|
|
| MD5 |
adc9cd4121fb2857c685b11831589ee7
|
|
| BLAKE2b-256 |
88844d16ba1f78664d900baf15e09fb3dfafe6d90e1d194d13adb4a307d0e79f
|
File details
Details for the file zns_logging-1.0.2-py3-none-any.whl.
File metadata
- Download URL: zns_logging-1.0.2-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05e6f82e4f18dc049ef4c9dd4755b6d268b1f1caf91bcad16b5a3f0a8035c739
|
|
| MD5 |
f8194cf971dbb60df3856552ac31e70b
|
|
| BLAKE2b-256 |
50598fa9f4b6849595d277ae11c681b68171a1db0c72046acf9571526f6cc5b7
|