Skip to main content

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")

Release files for logbt 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for logbt 0.4.0
File Size Uploaded
logbt-0.4.0.tar.gz 1.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for logbt 0.4.0
File Interpreter ABI Platform
logbt-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 3.9 kB

Release files / logbt-0.4.0.tar.gz

Download URL logbt-0.4.0.tar.gz
Size 1.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1c25963ce311faee13f131416ff622bd623bf5d82042941c919c7d6b7b1e6258
BLAKE2b-256 checksum
How to use checksums
525662e9b69400da1f98cec202a3d903556676bbc2eacaa171d570c0917902f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.10.2 Linux/5.19.0-46-generic

Release files / logbt-0.4.0-py3-none-any.whl

Download URL logbt-0.4.0-py3-none-any.whl
Size 2.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aa89cd334515b95100e9620ac0ec4a530f2fa7263dc273124587168902527376
BLAKE2b-256 checksum
How to use checksums
dbb54e4266dfe67cae3381fd3d7ec70781cf8fd30f089ca9c50671b33f019d21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.10.2 Linux/5.19.0-46-generic

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page