Mercurial Hosting > luan
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/luan/lib/logging/LoggerFactory.java Fri Feb 15 07:14:50 2019 -0700 @@ -0,0 +1,17 @@ +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); + } +}