Skip to main content

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 import get_logger

logger = get_logger(__name__, 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

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.

Project details


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.9.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zns_logging-1.0.9-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file zns_logging-1.0.9.tar.gz.

File metadata

  • Download URL: zns_logging-1.0.9.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

Hashes for zns_logging-1.0.9.tar.gz
Algorithm Hash digest
SHA256 3f1bd5d6e7827e11157a1ee922abb27e77fd726af0666d118d3136418df5858e
MD5 dc578bfa62370a95a77d0d81c20360f1
BLAKE2b-256 4e432a1063f01411afc6a573c1d0bddac4b6d21b7cf77d86fae5b17cd9b73135

See more details on using hashes here.

File details

Details for the file zns_logging-1.0.9-py3-none-any.whl.

File metadata

  • Download URL: zns_logging-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.6

File hashes

Hashes for zns_logging-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 e9eb5db35aad44f5f39ee3e734fea49c329aae10e51d96277895a138eb3a2162
MD5 5e65d01a9eca19aca887414d99106d3c
BLAKE2b-256 dbcc87288646f373e41ba762b0ae46d438e9bca5f0215f1e3c47907c2fd70354

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page