LogDecorator typedef
LogDecorator =
String Function(String message, LogRecordEntity record)
The decorator function then applies the necessary modifications or enhancements to the log message and returns the decorated message as a String. This allows for customizing the formatting, adding contextual information, or performing any other desired transformations on log messages.
Implementation
typedef LogDecorator = String Function(String message, LogRecordEntity record);