Skip to main content

Custom LORA logger.

Project description

Logger

This logger exists to replace boilerplate code for creating loggers. It also uses a custom format. In future, this package can be extended to include functions that write logs to an elastic search cluster or something too.

Usage:
Convension is to create many loggers, passing name as the name. Levels should be passed from a config file so that all logger levels are in one place. This allows for much easier debugging.

logger(name, level))

Args:
    name (str): name of the logger.
    level (str): name of the logger level. Valid values are "CRITICAL", "ERROR", "WARNING", "INFO", and "DEBUG"

Returns:
    logging.logger obj: A custom logger instance.

Example

from lora-logger.logger import logger

logger = logger(__name__, LOGGERS.EXAMPLE)
logger.info("This will write if LOGGERS.EXAMPLE is >= INFO")
logger.debug("This will write if LOGGERS.EXAMPLE is >= DEBUG")

Requirements


Contents

Package
logger
 ┣ __init__.py
 ┗ logger.py

logger.py

Contains the logger function.

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

LoraLogger-0.1.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

LoraLogger-0.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file LoraLogger-0.1.0.tar.gz.

File metadata

  • Download URL: LoraLogger-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.54.1 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.1

File hashes

Hashes for LoraLogger-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f9b42481a18505ce9d0f7b2be8db6bea2171bdcd1bd04fc4b128a6ff39a9d54a
MD5 bfa771d5a3b08fb852434b24f7ad7d6e
BLAKE2b-256 f902e28fdc1ca03c83a873f6c72d6ca9ea443696e4033eb5609bf18875b6c71e

See more details on using hashes here.

File details

Details for the file LoraLogger-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: LoraLogger-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.0 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.54.1 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.1

File hashes

Hashes for LoraLogger-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2270ba61da588605aa944787c05807e74f2f2a6a7b7a336ce63e68313c53f358
MD5 0a672005e75f095b98a9a17c623d4c70
BLAKE2b-256 bfb8c127601c0d522dbd285f532c5d50481fe367f936a07a76503ffe25b447f1

See more details on using hashes here.

Supported by

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