warn

fun Logger.warn(tag: String?, message: String)
fun warn(tag: String?, message: String)

Writes log with WARN log level and provided tag.

Parameters

tag

Tag of the log record. Optional

message

Message to be written into log.


fun Logger.warn(message: String)
fun warn(message: String)

Writes log with WARN log level and empty tag.

Parameters

message

Message to be written into log.


fun Logger.warn(tag: String? = null, throwable: Throwable)
fun warn(tag: String? = null, throwable: Throwable)

Log exception with WARN log level and provided tag.

Parameters

tag

Tag of the log record. Optional

throwable

Error or Exception to be written into log.


fun Logger.warn(throwable: Throwable)
fun warn(throwable: Throwable)

Log exception with WARN log level and empty tag.

Parameters

throwable

Error or Exception to be written into log.


fun Logger.warn(tag: String?, message: () -> String)
fun warn(tag: String?, message: () -> String)

Writes log with WARN log level and provided tag.

Parameters

tag

Tag of the log record. Optional

message

Function that returns message to be written into log


fun Logger.warn(message: () -> String)
fun warn(message: () -> String)

Writes log with WARN log level and empty tag.

Parameters

message

Function that returns message to be written into log


fun Logger.warn(tag: String? = null, throwable: Throwable? = null, message: () -> String)
fun warn(tag: String? = null, throwable: Throwable? = null, message: () -> String)

Writes log with WARN log level and provided tag.

Parameters

tag

Tag of the log record. Optional

throwable

Error or Exception. Optional

message

Message to be written into log.