comparison 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
comparison
equal deleted inserted replaced
1401:ef1620aa99cb 1402:27efb1fcbcb5
1 package goodjava.logging;
2
3
4 public abstract class LoggerFactory {
5 public static LoggerFactory implementation = new Log4jFactory();
6
7 protected abstract Logger getLoggerImpl(Class cls);
8 protected abstract Logger getLoggerImpl(String name);
9
10 public static Logger getLogger(Class cls) {
11 return implementation.getLoggerImpl(cls);
12 }
13
14 public static Logger getLogger(String name) {
15 return implementation.getLoggerImpl(name);
16 }
17 }