Mercurial Hosting > luan
annotate 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 |
rev | line source |
---|---|
1337 | 1 package luan.lib.logging; |
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 } |