"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "log4j-core/src/main/java/org/apache/logging/log4j/core/appender/AbstractFileAppender.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).

AbstractFileAppender.java  (apache-log4j-2.11.1-src):AbstractFileAppender.java  (apache-log4j-2.11.2-src)
skipping to change at line 26 skipping to change at line 26
*/ */
package org.apache.logging.log4j.core.appender; package org.apache.logging.log4j.core.appender;
import java.io.Serializable; import java.io.Serializable;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import org.apache.logging.log4j.core.Filter; import org.apache.logging.log4j.core.Filter;
import org.apache.logging.log4j.core.Layout; import org.apache.logging.log4j.core.Layout;
import org.apache.logging.log4j.core.config.Property;
import org.apache.logging.log4j.core.config.plugins.PluginBuilderAttribute; import org.apache.logging.log4j.core.config.plugins.PluginBuilderAttribute;
import org.apache.logging.log4j.core.config.plugins.validation.constraints.Requi red; import org.apache.logging.log4j.core.config.plugins.validation.constraints.Requi red;
import org.apache.logging.log4j.core.net.Advertiser; import org.apache.logging.log4j.core.net.Advertiser;
/** /**
* Abstract File Appender. * Abstract File Appender.
*/ */
public abstract class AbstractFileAppender<M extends OutputStreamManager> extend s AbstractOutputStreamAppender<M> { public abstract class AbstractFileAppender<M extends OutputStreamManager> extend s AbstractOutputStreamAppender<M> {
/** /**
skipping to change at line 162 skipping to change at line 163
} }
private final String fileName; private final String fileName;
private final Advertiser advertiser; private final Advertiser advertiser;
private final Object advertisement; private final Object advertisement;
private AbstractFileAppender(final String name, final Layout<? extends Seria lizable> layout, final Filter filter, private AbstractFileAppender(final String name, final Layout<? extends Seria lizable> layout, final Filter filter,
final M manager, final String filename, final boolean ignoreExceptio ns, final M manager, final String filename, final boolean ignoreExceptio ns,
final boolean immediateFlush, final Advertiser advertiser) { final boolean immediateFlush, final Advertiser advertiser, final Pro perty[] properties) {
super(name, layout, filter, ignoreExceptions, immediateFlush, manager); super(name, layout, filter, ignoreExceptions, immediateFlush, properties , manager);
if (advertiser != null) { if (advertiser != null) {
final Map<String, String> configuration = new HashMap<>(layout.getCo ntentFormat()); final Map<String, String> configuration = new HashMap<>(layout.getCo ntentFormat());
configuration.putAll(manager.getContentFormat()); configuration.putAll(manager.getContentFormat());
configuration.put("contentType", layout.getContentType()); configuration.put("contentType", layout.getContentType());
configuration.put("name", name); configuration.put("name", name);
advertisement = advertiser.advertise(configuration); advertisement = advertiser.advertise(configuration);
} else { } else {
advertisement = null; advertisement = null;
} }
this.fileName = filename; this.fileName = filename;
 End of changes. 3 change blocks. 
2 lines changed or deleted 3 lines changed or added

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