com.github.dynamicextensionsalfresco.Logging.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of annotations-runtime Show documentation
Show all versions of annotations-runtime Show documentation
Adds an OSGi container to alfresco repository supporting dynamic code reloading, classpath isolation and a bunch of other useful features
package com.github.dynamicextensionsalfresco
import org.slf4j.Logger
/**
* Logging helpers to allow concise debug statements without anonymous class overhead
*
* @author Laurent Van der Linden
*/
inline fun Logger.debug(p: () -> String) {
if (isDebugEnabled) debug(p())
}
inline fun Logger.info(p: () -> String) {
if (isInfoEnabled) info(p())
}
inline fun Logger.warn(p: () -> String) {
if (isWarnEnabled) warn(p())
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy