Skip to content

error

inline fun error(values: SentierValues = SentierValues.Empty, description: () -> String)

Logs an event at level LogLevel.Error in this thread.

Example

fun createUser() {
    error { "Creating user" }
    // …do something…
}

See also

  • currentSpan: Make sure the thread has an assigned span.