Kermit
Kermit copied to clipboard
Chunked log writer that breaks up long messages
This PR adds a commonMain
implementation of log chunking that can be applied to any log writer.
Logger.setLogWriters(platformLogWriter().chunked())
Logger.setTag("MyTag")
Logger.i { "Hello Kotlin" }
The chunked()
method defaults parameters for max / min chunking and returns a wrapped log writer that breaks long messages and feeds them to the wrapped writer.
This PR relates to #394