DefaultKSLog

constructor(defaultTag: String, messageFormatter: MessageFormatter = defaultMessageFormatter, logging: (level: LogLevel, tag: String, message: Any, throwable: Throwable?) -> Unit = KSLoggerDefaultPlatformLoggerLambda)(source)

Parameters

defaultTag

will be used in case when tag parameter in performLog omitted

messageFormatter

special formatter which creating String inside of performLog for each call. Defaults to defaultMessageFormatter

logging

target lambda which will be called with a result of messageFormatter logs formatting as a message and tag as tag if not null and defaultTag otherwise