Mercurial Hosting > luan
annotate src/goodjava/logging/LoggerFactory.java @ 1418:732b5de211fc
add Hosted.luan
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 18 Oct 2019 22:29:46 -0600 |
parents | 27efb1fcbcb5 |
children | 6fc083e1d08c |
rev | line source |
---|---|
1402
27efb1fcbcb5
move luan.lib to goodjava
Franklin Schmidt <fschmidt@gmail.com>
parents:
1338
diff
changeset
|
1 package goodjava.logging; |
1337 | 2 |
3 | |
4 public abstract class LoggerFactory { | |
1338 | 5 public static LoggerFactory implementation = new Log4jFactory(); |
1337 | 6 |
7 protected abstract Logger getLoggerImpl(Class cls); | |
8 protected abstract Logger getLoggerImpl(String name); | |
9 | |
10 public static Logger getLogger(Class cls) { | |
1338 | 11 return implementation.getLoggerImpl(cls); |
1337 | 12 } |
13 | |
14 public static Logger getLogger(String name) { | |
1338 | 15 return implementation.getLoggerImpl(name); |
1337 | 16 } |
17 } |