Registry / observability / minilog

minilog

JSON →
library2.3.1pypypiunverified

Minimalistic wrapper for Python's standard logging module. Provides a simpler API with sensible defaults. Current version 2.3.1, released under MIT license. Maintained regularly.

pip install minilog
INSTALL
IMPORT
SIG · MINILOG
M
minilog
observabilitypythonv2.3.1
Install
1.5s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.3.1 · pip install
no network on importno background threads
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
installs and imports cleanly · install 0.0s · import 0.000s · 17.9MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.5s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

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

log
from minilog.log import log
from minilog import log

Create a default logger and log messages.

from minilog import Logger log = Logger() # or Logger(__name__) for module-specific log.debug('This is debug')
Debug
Known issues
breakingIn v2.0, the API changed: Logger() now requires no arguments by default; positional argument for name is optional.
fix
Use Logger(__name__) if you want module-specific logger, or Logger() for root.
affects: >=2.0
deprecatedThe `log_level` argument in Logger constructor (used in v1.x) is ignored in v2. Use `setLevel()` instead.
fix
Call log.setLevel('DEBUG') after creation.
affects: >=2.0
gotchaLogger by default uses stdout, not stderr. Many expect logging to go to stderr.
fix
Configure handler: log.handler.stream = sys.stderr
affects: all
gotchaThe library is not thread-safe by default. Use logging locks if needed.
fix
Wrap with threading.Lock when logging from multiple threads.
affects: all
Upgrade
Version history
2.3.1latest on PyPI · released Aug 24, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
2
Resources
minilog — pip install minilog · libregistry