A simple and flexible logging library for Python
Project description
zns-logging
A simple and flexible logging library for Python
Installation
pip install zns-logging
Usage
from zns_logging.ZnsLogger import ZnsLogger
logger = ZnsLogger(__name__, "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
Change Log
1.0.0
- Status: Yanked
- Reason: The `colorama` dependency was missing from `install_requires`, causing errors during logger usage.
1.0.1
- Status: Released
- Changes: Added `colorama` to `install_requires`.
1.0.2
- Status: Released
- Changes: Added description and other metadata to `Setup.py`.
1.0.3
- Status: Released
- Changes: Removed unnecessary variables from `Setup.py`.
1.0.4
- Status: Released
- Changes: Update `zns_logging.py` logic.
1.0.5 & 1.0.6 & 1.0.7
- Status: Yanked
- Reason: Unnecessary releases.
1.0.8
- Status: Released
- Changes: Rename `zns_logging.py` to `ZnsLogging.py` and update logic.
1.0.9
- Status: Released
- Changes: Update automatically create log directory.
1.1.0
- Status: Released
- Changes: Change function `get_logger` to class `ZnsLogger`.
1.1.1
- Status: Released
- Changes: Remove `ZnsLogging.py`.
1.1.2
- Status: Released
- Changes:
- Update auto create log directory.
- `log_and_raise` now does not need to pass the caller's name.
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.1.2.tar.gz
(8.3 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.1.2.tar.gz.
File metadata
- Download URL: zns_logging-1.1.2.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d9d8841174bd1d3bfff35e8a41482fbc3fb40f4d316cfd9d4f20cf31b0a9634
|
|
| MD5 |
cf901bdaa4063a874806a68ed424b698
|
|
| BLAKE2b-256 |
98eb4556389f059a25fe571a154da443fcbecdecef376fcd753e90fd6d052564
|
File details
Details for the file zns_logging-1.1.2-py3-none-any.whl.
File metadata
- Download URL: zns_logging-1.1.2-py3-none-any.whl
- Upload date:
- Size: 9.1 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 |
9e49d7d7bd3fcf92199e6da5ab506b164c16433fc621b75a8405d8bda41f8ed8
|
|
| MD5 |
0c1552cb802e34cd6c66722acfb958c0
|
|
| BLAKE2b-256 |
032fd3d0b7c6a9faa1e4387a51188ae83dfee78cf50c8d47eb729ec6b39eaa92
|