How LogPrinter works and how to implement a custom one
mainA LogPrinter is responsible for formatting the log event into a list of strings. This is where the visual structure of the log is defined. You can implement a custom printer by extending LogPrinter and overriding the log method.
class MyPrinter extends LogPrinter {
@override
List<String> log(LogEvent event) {
return [event.message];
}
}