A python package with extra tools for the python logging package
Project description
beetle-logging
Formatted output using the Python "logging" package.
Installation
Install via PyPI using pip or uv
pip install bettle-logging
uv add bettle-logging
Usage
# Import logging and beetle packages
import logging
from beetle_logging import beetle
# Init the beetle class
bt = beetle(__name__, fileLogging=False)
# Set logging level
bt.setStreamLevel(logging.DEBUG)
# Create messages!
bt.logger.debug("This is a debug message")
bt.logger.info("This is an info message")
bt.logger.error("This is an error")
bt.logger.critical("This is a critical message")
Adding beetle to existing projects is easy! Using the "getLogger" function, existing usage of the logging package can use the standard formatting from beetle.
logger = logging.getLogger(__name__)
logger.debug("This is a debug message")
logger.info("This is an info message")
logger.error("This is an error")
logger.critical("This is a critical message")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
File details
Details for the file beetle_logging-0.1.1.tar.gz.
File metadata
- Download URL: beetle_logging-0.1.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ab7b84ddec906fff0a7d3fe842e1c64042151910115f6f549508cecd4812c48
|
|
| MD5 |
fc3309f29dcaab0a614869cd4f4832b7
|
|
| BLAKE2b-256 |
f57ee68ba9a7f57e05ea67e4803f0059a1ac4b2da5a1ef0441b924ea91780d49
|
File details
Details for the file beetle_logging-0.1.1-py3-none-any.whl.
File metadata
- Download URL: beetle_logging-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f036341380d58791e1101c090a467eeee2b455fa721254d040f8fac3aaa6f43e
|
|
| MD5 |
42f2c01b2abc5a71a26d3054bf7160d9
|
|
| BLAKE2b-256 |
4e0f53f1cb8f7ffe4dbc370661f4e39e2d02230a9b23b1a8da307ca5d167f2b2
|