DevViewLogWriter

object DevViewLogWriter : LogWriter

Optional LogWriter that forwards Kermit log calls to ConsoleLogger.

Native console capture (see Console.captureNativeConsole) cannot see NSLog/os_log/Swift Logger output on an iOS device with no debugger attached. Routing your app's logging through Kermit and registering this writer closes that gap on both platforms, since it runs in-process and does not depend on a debugger being attached:

Logger.addLogWriter(DevViewLogWriter)

Caveat

On Android, if you also use Kermit's own LogcatWriter, entries logged through Kermit will appear twice in the Console module — once via this writer, once via the native logcat tail picking up what LogcatWriter already wrote. Use one or the other for a given log call, or accept the duplication.

See also

Functions

Link copied to clipboard
open fun isLoggable(tag: String, severity: Severity): Boolean
Link copied to clipboard
open override fun log(severity: Severity, message: String, tag: String, throwable: Throwable?)