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

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

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

import org.slf4j.ILoggerFactory;
import org.slf4j.Logger;
import org.slf4j.event.Level;

/**
 * @author noear
 * @since 1.2
 */
public enum Slf4jLoggerFactoryImp implements ILoggerFactory {
    /**
     * 工厂单例
     */
    INSTANCE;


    /**
     * 日志等级(INFO 内容太多了)
     */
    private volatile Level level = Level.WARN;


    Slf4jLoggerFactoryImp() {

    }

    @Override
    public Logger getLogger(String name) {
        return new Slf4jLoggerImp(name);
    }

    public void setLevel(Level level) {
        this.level = level;
    }

    public Level getLevel() {
        return this.level;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy