error

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

Writes log with ERROR log level and provided tag.

Parameters

tag

Tag of the log record. Optional

message

Message to be written into log.


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

Writes log with ERROR log level and empty tag.

Parameters

message

Message to be written into log.


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

Log exception with ERROR log level and provided tag.

Parameters

tag

Tag of the log record. Optional

throwable

Error or Exception to be written into log.


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

Log exception with ERROR log level and empty tag.

Parameters

throwable

Error or Exception to be written into log.


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

Writes log with ERROR 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.error(message: () -> String)
fun error(message: () -> String)

Writes log with ERROR log level and empty tag.

Parameters

message

Function that returns message to be written into log


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

Writes log with ERROR 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.