KmLogging

object KmLogging

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun addLogger(logger: Logger)

Adds loggers. For use by native platforms that cannot use the vararg setLoggers.

Link copied to clipboard
fun clear()

Removes all loggers. For use by native platforms that cannot use the vararg setLoggers.

Link copied to clipboard
fun createTag(fromClass: String? = null): Pair<String, String>
Link copied to clipboard
fun debug(tag: String, msg: String)
Link copied to clipboard
fun error(tag: String, msg: String, t: Throwable? = null)
Link copied to clipboard
fun info(tag: String, msg: String)
Link copied to clipboard
fun removeLogger(logger: Logger)

Removes loggers. For use by native platforms that cannot use the vararg setLoggers.

Link copied to clipboard
fun setLogFactory(factory: LogFactory?)
Link copied to clipboard
fun setLoggers(vararg loggers: Logger)

Clears the existing loggers and adds in the new ones.

Link copied to clipboard
fun setLogLevel(level: LogLevel)
Link copied to clipboard

Recalculate all of the flags associated with whether each log level is on or off. Useful for when a logger's log level is dynamically set such as by a remote config service.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun verbose(tag: String, msg: String)
Link copied to clipboard
fun warn(tag: String, msg: String, t: Throwable? = null)