fatal

fun fatal(message: String, tag: String = defaultTag, throwable: Throwable? = null)(source)

Logs a FATAL message and throws a RuntimeException after all sinks have been flushed.

This method never returns normally. Use only for unrecoverable errors.

Parameters

message

The message to log.

tag

The tag to identify the log source. Defaults to the current default tag.

throwable

An optional exception to attach as the cause.