LoggerReport¶
- class dsviper.LoggerReport(level=0)¶
Bases:
objectCollects 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.
- 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.