Mercurial Hosting > luan
comparison slf4j/src/org/slf4j/impl/StaticLoggerBinder.java @ 1455:1437fb1f0956
add slf4j-goodjava
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 08 Mar 2020 16:50:14 -0600 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1454:219f2b937f2b | 1455:1437fb1f0956 |
---|---|
1 package org.slf4j.impl; | |
2 | |
3 import org.slf4j.ILoggerFactory; | |
4 import org.slf4j.spi.LoggerFactoryBinder; | |
5 | |
6 | |
7 public final class StaticLoggerBinder implements LoggerFactoryBinder { | |
8 private static final ILoggerFactory loggerFactory = new GoodFactory(); | |
9 | |
10 public ILoggerFactory getLoggerFactory() { | |
11 return loggerFactory; | |
12 } | |
13 | |
14 public String getLoggerFactoryClassStr() { | |
15 return GoodFactory.class.getName(); | |
16 } | |
17 | |
18 | |
19 private static final StaticLoggerBinder SINGLETON = new StaticLoggerBinder(); | |
20 | |
21 public static final StaticLoggerBinder getSingleton() { | |
22 return SINGLETON; | |
23 } | |
24 } |