mcfacts.objects.log
This module defines a protocol for logging functions.
The LogFunction protocol can be used to type-check callable objects or functions that are intended to log messages, optionally appending a new line.
Classes
|
A protocol that represents a logging function. |
- class mcfacts.objects.log.LogFunction(*args, **kwargs)
A protocol that represents a logging function.
Any callable that matches this protocol should accept a message as a string and an optional new_line flag (defaulting to True), and return None.