view src/luan/lib/logging/LoggerFactory.java @ 1337:8b61c8c4e07a

remove slf4j
author Franklin Schmidt <fschmidt@gmail.com>
date Fri, 15 Feb 2019 07:14:50 -0700
parents
children 5d414f5d34e8
line wrap: on
line source

package luan.lib.logging;


public abstract class LoggerFactory {
	public static LoggerFactory impl = new Log4jFactory();

	protected abstract Logger getLoggerImpl(Class cls);
	protected abstract Logger getLoggerImpl(String name);

	public static Logger getLogger(Class cls) {
		return impl.getLoggerImpl(cls);
	}

	public static Logger getLogger(String name) {
		return impl.getLoggerImpl(name);
	}
}