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

Output:

alt text

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-1.0.0.tar.gz (2.2 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-1.0.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file beetle_logging-1.0.0.tar.gz.

File metadata

  • Download URL: beetle_logging-1.0.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.14

File hashes

Hashes for beetle_logging-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2a4e07e131d19abf6a3aa3c320cad74f6a844d1815410a338396c5277b61fbef
MD5 c186e4e2c66b25fdd349d3fa7a670c45
BLAKE2b-256 e388895877d1b5e17b6a8e74763b528e1727de47834deec690bb8b8a0404e19e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for beetle_logging-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 207f9dcddffbd549bba8f372c9c734582f0982f9845bdb5f89584412887a85f8
MD5 d56a74bcbcbfb0729d558278ac59f81d
BLAKE2b-256 6f91f5f842fe94f0c567361038cba4d258d8196d1ec41b8fe52bf5f3952ab22a

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