Closed psh closed 4 months ago
This PR adds a commonMain implementation of log chunking that can be applied to any log writer.
commonMain
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.
chunked()
This PR relates to #394
Need to regenerate the api surface @psh
@psh I've merged https://github.com/touchlab/Kermit/pull/398 which should allow you to pass CI once you update
This PR adds a
commonMain
implementation of log chunking that can be applied to any log writer.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