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

org.slf4j.impl.StaticLoggerBinder Maven / Gradle / Ivy

There is a newer version: 0.24.2
Show newest version
package org.slf4j.impl;

import org.slf4j.ILoggerFactory;
import org.slf4j.spi.LoggerFactoryBinder;

/**
 * @author Samuel Grenier
 */
@SuppressWarnings("unused")
public class StaticLoggerBinder implements LoggerFactoryBinder {

    private static final StaticLoggerBinder INSTANCE = new StaticLoggerBinder();

    private final LoggerFactoryImpl factory;
    private final String className;

    public static StaticLoggerBinder getSingleton() {
        return INSTANCE;
    }

    private StaticLoggerBinder() {
        factory = new LoggerFactoryImpl();
        className = LoggerFactoryImpl.class.getName();
    }

    @Override
    public ILoggerFactory getLoggerFactory() {
        return factory;
    }

    @Override
    public String getLoggerFactoryClassStr() {
        return className;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy