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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
logbt-0.4.0-py3-none-any.whl
(2.2 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c25963ce311faee13f131416ff622bd623bf5d82042941c919c7d6b7b1e6258
|
|
| MD5 |
0c4a11d702ab2bf029e2fc11c2949d06
|
|
| BLAKE2b-256 |
525662e9b69400da1f98cec202a3d903556676bbc2eacaa171d570c0917902f0
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa89cd334515b95100e9620ac0ec4a530f2fa7263dc273124587168902527376
|
|
| MD5 |
9693b6d4bc6f6c567fb275130d3f33e8
|
|
| BLAKE2b-256 |
dbb54e4266dfe67cae3381fd3d7ec70781cf8fd30f089ca9c50671b33f019d21
|