Skip to main content

Configurable and easy extendable python logger.

Project description

py-logging

Configurable and easy extendable python logger

Build with python That works?

Status:

Branch Tests Code Quality
master buddy pipeline CodeFactor Grade

Usage

Basic

from pylogging.logger import Logger
from pylogging.log_level import LogLevel

logger = Logger()

logger.log(LogLevel.INFO, "Connection initialized")
logger.log(LogLevel.WARNING, "The rat bit your cables")
logger.log(LogLevel.ERROR, "The plague of rats in the server room")
showcase

Formatters

Scope
from pylogging.logger import Logger
from pylogging.log_level import LogLevel

logger = Logger()
logger.set_options({"scope": True})

logger.log(LogLevel.ERROR, "Cannot connect to host")
showcase
List
from pylogging.logger import Logger
from pylogging.log_level import LogLevel

logger = Logger()

logger.log(LogLevel.INFO, ["List", "List"])
showcase
Dictionary
from pylogging.logger import Logger
from pylogging.log_level import LogLevel

logger = Logger()

logger.log(LogLevel.INFO, {"1": "Value1", "2": "Value2"})
showcase

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

py-logging-1.0.2.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.

py_logging-1.0.2-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file py-logging-1.0.2.tar.gz.

File metadata

  • Download URL: py-logging-1.0.2.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for py-logging-1.0.2.tar.gz
Algorithm Hash digest
SHA256 dcce3b87f7b1749d3e53b867d87633dabc908c0e93ee9f2febe3524ea40eb43d
MD5 6758f23742b11e6a580cdd1f7dd67702
BLAKE2b-256 7518c4a782fc8b167c322628ad5fb7564908f690e437fce690db3fa2bf5d0ca8

See more details on using hashes here.

File details

Details for the file py_logging-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: py_logging-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for py_logging-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d341d645d808613fba58c21ae54f31b19bf280385d019e61bfa853036150b9aa
MD5 cfa4f89d24a00d62184a73dd26f447f5
BLAKE2b-256 8f290a336d7916cb9d4677d42554ed8296bafdbe25bdf417a6f264f354c283fe

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