Skip to main content

No project description provided

Project description

Configuration for Loguru

Install

poetry add logbt

Usage

import logging

from logbt import config
from logbt import inject_loguru_to_logging
from logbt import logger

config(level="INFO")


def f():
    logger.info("INSIDE function")


logger.debug("YOU SHOULD NOT SEE THIS")
logger.info("THIS IS INFO")
logger.error("THIS IS NOT INFO")
f()

inject_loguru_to_logging("test")
logging_logger = logging.getLogger("test")
logging_logger.setLevel(logging.INFO)
logging_logger.info("Inject logging %s", "test")

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

logbt-0.4.0.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

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

logbt-0.4.0-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file logbt-0.4.0.tar.gz.

File metadata

  • Download URL: logbt-0.4.0.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.2 Linux/5.19.0-46-generic

File hashes

Hashes for logbt-0.4.0.tar.gz
Algorithm Hash digest
SHA256 1c25963ce311faee13f131416ff622bd623bf5d82042941c919c7d6b7b1e6258
MD5 0c4a11d702ab2bf029e2fc11c2949d06
BLAKE2b-256 525662e9b69400da1f98cec202a3d903556676bbc2eacaa171d570c0917902f0

See more details on using hashes here.

File details

Details for the file logbt-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: logbt-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.2 Linux/5.19.0-46-generic

File hashes

Hashes for logbt-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aa89cd334515b95100e9620ac0ec4a530f2fa7263dc273124587168902527376
MD5 9693b6d4bc6f6c567fb275130d3f33e8
BLAKE2b-256 dbb54e4266dfe67cae3381fd3d7ec70781cf8fd30f089ca9c50671b33f019d21

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