![JAR search and dependency download from the Maven repository](/logo.png)
org.nohope.logging.LoggerFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of slf4j-logging Show documentation
Show all versions of slf4j-logging Show documentation
Slf4j wrapper extending formatting abilities
package org.nohope.logging;
import org.slf4j.ILoggerFactory;
/**
* This class is written to mimic public slf4j
* {@link org.slf4j.LoggerFactory LoggerFactory} interface but return
* {@link EnhancedLogger EnhancedLogger} wrapping underlying logger realization.
*
* @author ketoth xupack
* @since 2012-02-22 12:12
*/
public final class LoggerFactory {
private LoggerFactory() {
}
public static Logger getLogger(final Class> clazz) {
return new EnhancedLogger(org.slf4j.LoggerFactory.getLogger(clazz));
}
public static Logger getLogger(final String name) {
return new EnhancedLogger(org.slf4j.LoggerFactory.getLogger(name));
}
public static ILoggerFactory getILoggerFactory() {
return new EnhancedLoggerFactory(org.slf4j.LoggerFactory.getILoggerFactory());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy