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 LoraLogger.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.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: LoraLogger-0.1.1.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.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for LoraLogger-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4d099b2e001dfd2e42700ebf59e101c92cd1c05731b020986b93199a921671a4
MD5 c81a8859d5933fef2d1d925e43a9de8d
BLAKE2b-256 b5f3d8a4f06ab0f1a400080e76a89b2215dc5f444e957b6359d6c16dbe654cf6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: LoraLogger-0.1.1-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.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

File hashes

Hashes for LoraLogger-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8125d16a6f2d04c2cb1e9caa8f2ff69bb2a3810dadc80df324d4ea9a0f5ac6e2
MD5 c4410bb87e99f816b18dd77ad750c727
BLAKE2b-256 a16570195e0bbec3686e8f12df162d15de56558b4051cfaca7c927fa93eda398

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