comparison src/luan/lib/logging/LoggerFactory.java @ 1338:5d414f5d34e8

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 17 Feb 2019 04:54:52 -0700
parents 8b61c8c4e07a
children
comparison
equal deleted inserted replaced
1337:8b61c8c4e07a 1338:5d414f5d34e8
1 package luan.lib.logging; 1 package luan.lib.logging;
2 2
3 3
4 public abstract class LoggerFactory { 4 public abstract class LoggerFactory {
5 public static LoggerFactory impl = new Log4jFactory(); 5 public static LoggerFactory implementation = new Log4jFactory();
6 6
7 protected abstract Logger getLoggerImpl(Class cls); 7 protected abstract Logger getLoggerImpl(Class cls);
8 protected abstract Logger getLoggerImpl(String name); 8 protected abstract Logger getLoggerImpl(String name);
9 9
10 public static Logger getLogger(Class cls) { 10 public static Logger getLogger(Class cls) {
11 return impl.getLoggerImpl(cls); 11 return implementation.getLoggerImpl(cls);
12 } 12 }
13 13
14 public static Logger getLogger(String name) { 14 public static Logger getLogger(String name) {
15 return impl.getLoggerImpl(name); 15 return implementation.getLoggerImpl(name);
16 } 16 }
17 } 17 }