Registry / observability / lib-log-utils

lib-log-utils

JSON →
library1.4.15pypypiunverified

A utility library for colored log messages and banners from commandline and Python. Current version 1.4.15, supports Python >=3.8.0, actively maintained.

pip install lib-log-utils
INSTALL
IMPORT
SIG · LIB-LOG-UTILS
L
lib-log-utils
observabilitypythonv1.4.15
Install
Import
Disk
Pass rate
0/ 10
Env Coverage0 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v? · pip install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
build_error
glibc
py 3.103.95 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LogUtil
from lib_log_utils import LogUtil
Correct import path.
ColorLogFormatter
from lib_log_utils import ColorLogFormatter
Correct import path for color formatting.
banner
from lib_log_utils import banner
Function to print banners.

Basic usage: create a LogUtil instance and use .info(), .success(), .warning(), .error() methods with colored output.

from lib_log_utils import LogUtil log = LogUtil() log.info('Hello, colored world!') log.success('Task completed') log.warning('Be careful') log.error('Something went wrong')
Debug
Known issues
gotchaLogUtil by default logs to stdout; ensure your application does not interfere with stderr expectations.
fix
Configure LogUtil with stream parameter: LogUtil(stream=sys.stderr) for error logging.
affects: all
gotchaColoring may not work in all terminals or Windows Command Prompt without ANSI support.
fix
Set environment variable LOG_UTILS_NO_COLOR=1 to disable colors, or install `colorama` for Windows support.
affects: all
gotchaThe banner function prints to stdout and uses special characters; may cause issues in logging pipelines.
fix
Use banner(stream=some_stream) to redirect output.
affects: all
Upgrade
Version history
1.4.15latest on PyPI · released Jul 21, 2023
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
OpenAI (training)
2
Resources
lib-log-utils — pip install lib-log-utils · libregistry