"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "log4j-slf4j18-impl/src/main/java/org/apache/logging/slf4j/Log4jLoggerFactory.java" between
apache-log4j-2.11.1-src.tar.gz and apache-log4j-2.11.2-src.tar.gz

About: Apache Log4j 2 is a logging library for Java. Source distribution (Java).

Log4jLoggerFactory.java  (apache-log4j-2.11.1-src):Log4jLoggerFactory.java  (apache-log4j-2.11.2-src)
skipping to change at line 35 skipping to change at line 35
/** /**
* Log4j implementation of SLF4J ILoggerFactory interface. * Log4j implementation of SLF4J ILoggerFactory interface.
*/ */
public class Log4jLoggerFactory extends AbstractLoggerAdapter<Logger> implements ILoggerFactory { public class Log4jLoggerFactory extends AbstractLoggerAdapter<Logger> implements ILoggerFactory {
private static final String FQCN = Log4jLoggerFactory.class.getName(); private static final String FQCN = Log4jLoggerFactory.class.getName();
private static final String PACKAGE = "org.slf4j"; private static final String PACKAGE = "org.slf4j";
private final Log4jMarkerFactory markerFactory; private final Log4jMarkerFactory markerFactory;
public Log4jLoggerFactory(Log4jMarkerFactory markerFactory) { public Log4jLoggerFactory(final Log4jMarkerFactory markerFactory) {
this.markerFactory = markerFactory; this.markerFactory = markerFactory;
} }
@Override @Override
protected Logger newLogger(final String name, final LoggerContext context) { protected Logger newLogger(final String name, final LoggerContext context) {
final String key = Logger.ROOT_LOGGER_NAME.equals(name) ? LogManager.ROO T_LOGGER_NAME : name; final String key = Logger.ROOT_LOGGER_NAME.equals(name) ? LogManager.ROO T_LOGGER_NAME : name;
return new Log4jLogger(markerFactory, context.getLogger(key), name); return new Log4jLogger(markerFactory, context.getLogger(key), name);
} }
@Override @Override
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)