Skip to main content

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


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)

Uploaded Source

Built Distribution

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

zns_logging-1.0.3-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

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

Hashes for zns_logging-1.0.3.tar.gz
Algorithm Hash digest
SHA256 63a3c62453f845f124d053197ec7c56c2a0d33f29ec4a9fd99ab593107605813
MD5 71cdc1c987635b5f398b7db0d442c645
BLAKE2b-256 515e798bfebd6b8a0cb0eaf4f83f8e69f973b376fbf411a8dd1103f652ee91ed

See more details on using hashes here.

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

Hashes for zns_logging-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7c3762ff251ead642f7427d0c85ef70f8a73b449b29d5b578242e71c0ff231cd
MD5 f93bddb7823a6dd5fb76ff720e049116
BLAKE2b-256 970f83c574be57f75f76f16d41090445e4175a3b3b10e07b5839110a10004658

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