LoggingMiddleware
LoggingMiddleware¶
Logging - out of the box¶
MVICore comes with a configurable LoggingMiddleware
that you can use right away.
val wrapped = LoggingMiddleware(consumer, { System.out.println(it) })
The actual logging part is not hardcoded, so you can set your preferred way of producing output.
The constructor also accepts an optional Configuration
object if you want to modify the templates it uses. Check the actual file for more details.