org.slf4j.impl.StaticLoggerBinder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snail Show documentation
Show all versions of snail Show documentation
基于Java开发的下载工具,支持下载协议:BT(BitTorrent、磁力链接、种子文件)、HLS(M3U8)、FTP、HTTP。
package org.slf4j.impl;
import org.slf4j.ILoggerFactory;
import org.slf4j.spi.LoggerFactoryBinder;
import com.acgist.snail.logger.LoggerContext;
/**
* 日志绑定
*
* @author acgist
*/
public final class StaticLoggerBinder implements LoggerFactoryBinder {
private static final StaticLoggerBinder INSTANCE = new StaticLoggerBinder();
public static final String REQUESTED_API_VERSION = "1.7.30";
/**
* SL4J绑定方法
*
* @return {@link StaticLoggerBinder}
*/
public static final StaticLoggerBinder getSingleton() {
return INSTANCE;
}
private StaticLoggerBinder() {
}
@Override
public ILoggerFactory getLoggerFactory() {
return LoggerContext.getInstance();
}
@Override
public String getLoggerFactoryClassStr() {
return LoggerContext.getInstance().getName();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy