wtf

inline fun wtf(msg: String): Int(source)

Send a Level.Fatal log message 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.

NOTE: If AbortHandler is installed at Root (the default configuration), this will cause the program to abort.

Return

The number of Log instances that logged the data.

Parameters

msg

The message to log.

See also


inline fun wtf(t: Throwable): Int(source)

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

NOTE: If AbortHandler is installed at Root (the default configuration), this will cause the program to abort.

Return

The number of Log instances that logged the data.

Parameters

t

The error to log.

See also


inline fun wtf(t: Throwable?, msg: String?): Int(source)

Send a Level.Fatal log message 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.

NOTE: If AbortHandler is installed at Root (the default configuration), this will cause the program to abort.

Return

The number of Log instances that logged the data.

Parameters

msg

The message to log.

t

The error to log.

See also


@JvmName(name = "-wtf")
inline fun wtf(lazyMsg: () -> Any?): Int(source)

Send a Level.Fatal log message 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.

NOTE: If AbortHandler is installed at Root (the default configuration), this will cause the program to abort.

Return

The number of Log instances that logged the data.

Parameters

lazyMsg

The message to log.

See also


@JvmName(name = "-wtf")
inline fun wtf(t: Throwable?, lazyMsg: () -> Any?): Int(source)

Send a Level.Fatal log message 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.

NOTE: If AbortHandler is installed at Root (the default configuration), this will cause the program to abort.

Return

The number of Log instances that logged the data.

Parameters

lazyMsg

The message to log.

t

The error to log or null.

See also