Mercurial Hosting > luan
diff src/goodjava/logging/LoggerFactory.java @ 1402:27efb1fcbcb5
move luan.lib to goodjava
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 17 Sep 2019 01:35:01 -0400 |
parents | src/luan/lib/logging/LoggerFactory.java@5d414f5d34e8 |
children | 6fc083e1d08c |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/goodjava/logging/LoggerFactory.java Tue Sep 17 01:35:01 2019 -0400 @@ -0,0 +1,17 @@ +package goodjava.logging; + + +public abstract class LoggerFactory { + public static LoggerFactory implementation = new Log4jFactory(); + + protected abstract Logger getLoggerImpl(Class cls); + protected abstract Logger getLoggerImpl(String name); + + public static Logger getLogger(Class cls) { + return implementation.getLoggerImpl(cls); + } + + public static Logger getLogger(String name) { + return implementation.getLoggerImpl(name); + } +}