Logmuse is a lightweight Python library designed to simplify the setup of basic logging for applications. It provides utilities to configure named loggers, set log levels, and integrate logging options with `argparse`. The current version is 0.3.0, and it maintains a relatively stable release cadence with minor updates.
pip install logmuseVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize a named logger using `setup_logging` and emit various log messages. Remember to call `setup_logging` before your logger instance (`_LOGGER`) starts emitting messages to ensure handlers are configured.
Ensure `setup_logging` is called only once per logger name during application initialization. If you need to change logging levels dynamically, use `logging.getLogger(name).setLevel()` directly.
Always explicitly specify the desired logging level, e.g., `setup_logging(name='my_app', level='DEBUG')` to ensure all messages are captured.
It's best practice to use a single, consistent approach for logging configuration. Ensure `logmuse.setup_logging` is your primary method, and avoid calling `logging.basicConfig()` if `logmuse` is handling your setup.
No dependency data recorded yet.