com.dahuatech.hutool.log.LogFactory Maven / Gradle / Ivy
package com.dahuatech.hutool.log;
import com.dahuatech.hutool.core.io.resource.ResourceUtil;
import com.dahuatech.hutool.core.lang.caller.CallerUtil;
import com.dahuatech.hutool.log.dialect.commons.ApacheCommonsLogFactory;
import com.dahuatech.hutool.log.dialect.console.ConsoleLogFactory;
import com.dahuatech.hutool.log.dialect.jboss.JbossLogFactory;
import com.dahuatech.hutool.log.dialect.jdk.JdkLogFactory;
import com.dahuatech.hutool.log.dialect.log4j.Log4jLogFactory;
import com.dahuatech.hutool.log.dialect.log4j2.Log4j2LogFactory;
import com.dahuatech.hutool.log.dialect.slf4j.Slf4jLogFactory;
import com.dahuatech.hutool.log.dialect.tinylog.TinyLogFactory;
import java.net.URL;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* 日志工厂类
*
* @see Slf4jLogFactory
* @see Log4j2LogFactory
* @see Log4jLogFactory
* @see ApacheCommonsLogFactory
* @see TinyLogFactory
* @see JbossLogFactory
* @see ConsoleLogFactory
* @see JdkLogFactory
* @author Looly
*/
public abstract class LogFactory {
/** 日志框架名,用于打印当前所用日志框架 */
protected String name;
/** 日志对象缓存 */
private Map