log

inline fun log(level: Log.Level, msg: String): Int(source)

Send a log message for specified Level to all Log instances installed at Root.

NOTE: The lazyMsg inline version of this function should be preferred when possible to mitigate unnecessary String creation.

Return

The number of Log instances that logged the data.

Parameters

level

The Level of the log.

msg

The message to log.


inline fun log(level: Log.Level, t: Throwable): Int(source)

Send a log message for specified Level to all Log instances installed at Root.

NOTE: The lazyMsg inline version of this function should be preferred when possible to mitigate unnecessary String creation.

Return

The number of Log instances that logged the data.

Parameters

level

The Level of the log.

t

The error to log.


fun log(level: Log.Level, t: Throwable?, msg: String?): Int(source)

Send a log message for specified Level to all Log instances installed at Root.

NOTE: The lazyMsg inline version of this function should be preferred when possible to mitigate unnecessary String creation.

Return

The number of Log instances that logged the data.

Parameters

msg

The message to log.

t

The error to log.


@JvmName(name = "-log")
inline fun log(level: Log.Level, lazyMsg: () -> Any?): Int(source)

Send a log message for specified Level to all Log instances installed at Root. If no Log instances are installed, or none will accept it, then nothing is logged and lazyMsg will not be invoked.

Return

The number of Log instances that logged the data.

Parameters

level

The Level of the log.

lazyMsg

The message to log.


@JvmName(name = "-log")
inline fun log(level: Log.Level, t: Throwable?, lazyMsg: () -> Any?): Int(source)

Send a log message for specified Level to all Log instances installed at Root. If no Log instances are installed, or none will accept it, then nothing is logged and lazyMsg will not be invoked.

Return

The number of Log instances that logged the data.

Parameters

level

The Level of the log.

lazyMsg

The message to log.

t

The error to log.