All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.jadx.plugins.kotlin.metadata.utils.LogExt.kt Maven / Gradle / Ivy

There is a newer version: 1.5.1
Show newest version
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