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

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

Go to download

基于Java开发的下载工具,支持下载协议:BT(BitTorrent、磁力链接、种子文件)、HLS(M3U8)、FTP、HTTP。

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