com.jchanghong.log.LogFactory Maven / Gradle / Ivy
The newest version!
package com.jchanghong.log;
import com.jchanghong.core.io.resource.ResourceUtil;
import com.jchanghong.core.lang.caller.CallerUtil;
import com.jchanghong.core.util.ServiceLoaderUtil;
import com.jchanghong.log.dialect.console.ConsoleLogFactory;
import com.jchanghong.log.dialect.jdk.JdkLogFactory;
import java.net.URL;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
/**
* 日志工厂类
*
* @author Looly
*/
public abstract class LogFactory {
/**
* 日志框架名,用于打印当前所用日志框架
*/
protected String name;
/**
* 日志对象缓存
*/
private final Map