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.3.0.tar.gz
(1.7 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.3.0-py3-none-any.whl
(2.1 kB
view details)
File details
Details for the file logbt-0.3.0.tar.gz.
File metadata
- Download URL: logbt-0.3.0.tar.gz
- Upload date:
- Size: 1.7 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 |
95502ee0ede49f7adeb2d633c7d34e7697b7491c57fff439e4d1c65844aafffb
|
|
| MD5 |
a0aae3f7ca9d268769edee3c874b6dbc
|
|
| BLAKE2b-256 |
dfb664be3a9d8266bc82e366c54bdb46686a9d2847c66d19e1c242f3d34fa77c
|
File details
Details for the file logbt-0.3.0-py3-none-any.whl.
File metadata
- Download URL: logbt-0.3.0-py3-none-any.whl
- Upload date:
- Size: 2.1 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 |
72285af4f6fea4695a1def9d9d49614018367a16dff3d939360b4245dd68bbfd
|
|
| MD5 |
603074dd63490cbf483208b3aabbaf5c
|
|
| BLAKE2b-256 |
7cc69736e304473997d8933d06c7af23f2c21d20c2e9101479072fe722b47a31
|