Skip to main content

BB-LoggerWrapper

Simple wrapper with a formatted StreamHandler (ConsoleHandler)

# __init__.py

import logging
import os
from LoggerWrapper import Logger, ConsoleHandler, LogLevel

logging.setLoggerClass(Logger)

level = LogLevel( os.getenv( "PYTHON_LOGLEVEL", "info" ))
logger = logging.getLogger(__name__)
logger.setLevel(level)
logger.addHandler( ConsoleHandler() )

Changelog

v0.1.1 - 2026-04-03
  • Corrected README instructions
  • Took over formatting the log record
    • fixed errors with messages containing '{' and '}'
  • Changed ConsoleHandler formatting
  • Added rich formatting to tracebacks
  • ConsoleLogger now inherits from rich.logging.RichHandler
v0.1.0 - 2026-03-18
  • Initial release

Metadata

Release files for bb-loggerwrapper 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bb-loggerwrapper 0.1.1
File Size Uploaded
bb_loggerwrapper-0.1.1.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bb-loggerwrapper 0.1.1
File Interpreter ABI Platform
bb_loggerwrapper-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.2 kB

Release files / bb_loggerwrapper-0.1.1.tar.gz

Download URL bb_loggerwrapper-0.1.1.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a77b2e1fe7cf74e7a8d728fe3ea043ba6b232ab2551d03ca4551da1ca21a4fae
BLAKE2b-256 checksum
How to use checksums
fb7d0c383c9968075ec96642f0a54957e8015db9a57fe3aee1594d81f1e7c990
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.3 CPython/3.14.3 Linux/6.19.10-arch1-1

Release files / bb_loggerwrapper-0.1.1-py3-none-any.whl

Download URL bb_loggerwrapper-0.1.1-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f5fb6d6365f7e890611779553423307d971c578e46ea281631dbfb56053ac1e1
BLAKE2b-256 checksum
How to use checksums
9983ab13f785423ee496d28feac725989c25a41d287f8bb2fc2a749180d92837
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.3 CPython/3.14.3 Linux/6.19.10-arch1-1

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page