Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

beetle_logging-0.1.1.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

beetle_logging-0.1.1-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

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

Hashes for beetle_logging-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9ab7b84ddec906fff0a7d3fe842e1c64042151910115f6f549508cecd4812c48
MD5 fc3309f29dcaab0a614869cd4f4832b7
BLAKE2b-256 f57ee68ba9a7f57e05ea67e4803f0059a1ac4b2da5a1ef0441b924ea91780d49

See more details on using hashes here.

File details

Details for the file beetle_logging-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for beetle_logging-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f036341380d58791e1101c090a467eeee2b455fa721254d040f8fac3aaa6f43e
MD5 42f2c01b2abc5a71a26d3054bf7160d9
BLAKE2b-256 4e0f53f1cb8f7ffe4dbc370661f4e39e2d02230a9b23b1a8da307ca5d167f2b2

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