At now CommonWriter's formatter is private, which make it impossible to use custom formatter when inheriting writer. See below
class MyWriter() : CommonWriter(MyFormatter()) {
override fun log(severity: Severity, message: String, tag: String, throwable: Throwable?) =
// Cannot access 'messageStringFormatter': it is invisible (private in a supertype)
Mylog.log(messageStringFormatter.formatMessage(severity, Tag(tag), Message(message)))
}
Kermit/kermit-core/src/commonMain/kotlin/co/touchlab/kermit/CommonWriter.kt
Line 19 in 8e20fa5
At now CommonWriter's formatter is private, which make it impossible to use custom formatter when inheriting writer. See below