Back to project page slf4j-android-logger.
The source code is released under:
MIT License
If you think the Android project slf4j-android-logger listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.slf4j.impl; /*w w w.j a v a 2 s. co m*/ import org.slf4j.ILoggerFactory; import org.slf4j.spi.LoggerFactoryBinder; /** * The binding of {@link org.slf4j.LoggerFactory} class with an actual instance of * {@link org.slf4j.ILoggerFactory} is performed using information returned by this class. */ public class StaticLoggerBinder implements LoggerFactoryBinder { /** * The unique instance of this class. */ private static final StaticLoggerBinder SINGLETON = new StaticLoggerBinder(); /** * Return the singleton of this class. * * @return the StaticLoggerBinder singleton */ public static StaticLoggerBinder getSingleton() { return SINGLETON; } private static final String loggerFactoryClassStr = AndroidLoggerFactory.class.getName(); /** * The ILoggerFactory instance returned by the {@link #getLoggerFactory} method * should always be the same object */ private final ILoggerFactory loggerFactory; private StaticLoggerBinder() { loggerFactory = new AndroidLoggerFactory(); } @Override public ILoggerFactory getLoggerFactory() { return loggerFactory; } @Override public String getLoggerFactoryClassStr() { return loggerFactoryClassStr; } }