main.jadx.plugins.kotlin.metadata.utils.LogExt.kt Maven / Gradle / Ivy
package jadx.plugins.kotlin.metadata.utils
import org.slf4j.Logger
import org.slf4j.LoggerFactory
inline val T.LOG: Logger get() = LoggerFactory.getLogger(T::class.java)
inline fun T.runCatchingLog(msg: String? = null, block: () -> R) =
runCatching(block)
.onFailure { LOG.error(msg.orEmpty(), it) }
© 2015 - 2025 Weber Informatics LLC | Privacy Policy