Kermit icon indicating copy to clipboard operation
Kermit copied to clipboard

Feature Request: Support for CLI applications

Open vegidio opened this issue 2 years ago • 0 comments

Does Kermit support CLI applications? I got it working in my iOS app, but when I tried to create a CLI application using KMP, it didn't print anything in my terminal. It only worked after I created a custom LogWriter, like this:

class YourCustomWriter : LogWriter() {
    override fun log(severity: Severity, message: String, tag: String, throwable: Throwable?) {
        println(message)
    }
}

Logger.setLogWriters(YourCustomWriter())
Logger.d { "Test" }

vegidio avatar Feb 11 '24 19:02 vegidio