LoggerReport

class dsviper.LoggerReport(level=0)

Bases: object

Collects messages instead of emitting them.

level is the minimum severity kept; anything below it is dropped. Logging.LEVEL_ALL, the default, keeps everything. Nothing empties the list, so a report holds every message it ever took.

logging() → Logging

Return the Logging interface.

messages() → list[str]

Return the messages collected so far, each one the severity’s three letters, a colon, then the text - DBG, INF, WNG, ERR or CRI.