fatal
fun fatal(throwable: Throwable? = null, attrs: AttrBuilder.() -> Unit = {}, message: () -> String)(source)
Logs a fatal message, flushes all sinks, then throws a RuntimeException.
Never returns normally, even when FATAL is filtered out by the installed policy: the event is then not emitted, but the exception is still thrown.
Parameters
throwable
An optional exception.
attrs
A builder for adding structured attributes.
message
A lambda that returns the log message.