The `verboselogs` package extends Python's standard `logging` module by introducing additional log levels: NOTICE, SPAM, SUCCESS, and VERBOSE. These levels are strategically positioned within the existing hierarchy (e.g., NOTICE between WARNING and INFO, VERBOSE between INFO and DEBUG) to provide more granular control over log output. Version 1.7 is currently active, and its release cadence has been stable, with the last update in 2017.
pip install verboselogsVerified import paths — ran on the pinned version, not inferred.
Initialize a VerboseLogger, add a stream handler, and set the logging level to VERBOSE to see messages from VERBOSE and higher levels, including custom levels like SPAM, NOTICE, and SUCCESS. The example demonstrates logging at various levels.
Use `logger = verboselogs.VerboseLogger('my_logger_name')` for all instances where custom levels are required, or call `verboselogs.install()` early in your application to make `logging.getLogger()` return a `VerboseLogger` instance.Explicitly set `setLevel()` on your handlers and the logger itself to `verboselogs.SPAM`, `verboselogs.VERBOSE`, or `logging.DEBUG` to ensure all desired messages are processed. For example, `handler.setLevel(verboselogs.SPAM)`.
pip install verboselogs
import verboselogs verboselogs.install()
import verboselogs verboselogs.install()
No dependency data recorded yet.