
jvmMain.io.ktor.util.Logging.kt Maven / Gradle / Ivy
/*
* Copyright 2014-2019 JetBrains s.r.o and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package io.ktor.util
import org.slf4j.*
/**
* Logs an error from an [exception] using its message
*/
fun Logger.error(exception: Throwable) = error(exception.message ?: "Exception of type ${exception.javaClass}", exception)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy