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

com.zusmart.basic.logging.support.Log4j2LoggerFactory Maven / Gradle / Ivy

Go to download

基础模块,提供配置,日志,SPI,图排序,路径匹配,资源扫描,包扫描,常用工具类

There is a newer version: 0.0.3
Show newest version
package com.zusmart.basic.logging.support;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.util.ProviderUtil;

import com.zusmart.basic.logging.Logger;
import com.zusmart.basic.logging.LoggerFactory;

public class Log4j2LoggerFactory extends LoggerFactory {
	
	public Log4j2LoggerFactory() {
		if (ProviderUtil.hasProviders() == false) {
			throw new RuntimeException("Missing Providers");
		}
	}

	@Override
	protected Logger newInstance(String name) {
		return new Log4j2Logger(LogManager.getLogger(name));
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy