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.3.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.3.tar.gz.
File metadata
- Download URL: zns_logging-1.0.3.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 |
63a3c62453f845f124d053197ec7c56c2a0d33f29ec4a9fd99ab593107605813
|
|
| MD5 |
71cdc1c987635b5f398b7db0d442c645
|
|
| BLAKE2b-256 |
515e798bfebd6b8a0cb0eaf4f83f8e69f973b376fbf411a8dd1103f652ee91ed
|
File details
Details for the file zns_logging-1.0.3-py3-none-any.whl.
File metadata
- Download URL: zns_logging-1.0.3-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 |
7c3762ff251ead642f7427d0c85ef70f8a73b449b29d5b578242e71c0ff231cd
|
|
| MD5 |
f93bddb7823a6dd5fb76ff720e049116
|
|
| BLAKE2b-256 |
970f83c574be57f75f76f16d41090445e4175a3b3b10e07b5839110a10004658
|