Mercurial Hosting > luan
comparison src/luan/lib/logging/LoggerFactory.java @ 1337:8b61c8c4e07a
remove slf4j
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 15 Feb 2019 07:14:50 -0700 |
parents | |
children | 5d414f5d34e8 |
comparison
equal
deleted
inserted
replaced
1336:7483108154bb | 1337:8b61c8c4e07a |
---|---|
1 package luan.lib.logging; | |
2 | |
3 | |
4 public abstract class LoggerFactory { | |
5 public static LoggerFactory impl = 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 impl.getLoggerImpl(cls); | |
12 } | |
13 | |
14 public static Logger getLogger(String name) { | |
15 return impl.getLoggerImpl(name); | |
16 } | |
17 } |