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

org.nohope.logging.LoggerFactory Maven / Gradle / Ivy

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