"Fossies" - the Fresh Open Source Software Archive  

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

ProcessIdPatternConverter.java  (apache-log4j-2.11.1-src):ProcessIdPatternConverter.java  (apache-log4j-2.11.2-src)
skipping to change at line 35 skipping to change at line 35
public final class ProcessIdPatternConverter extends LogEventPatternConverter { public final class ProcessIdPatternConverter extends LogEventPatternConverter {
private static final String DEFAULT_DEFAULT_VALUE = "???"; private static final String DEFAULT_DEFAULT_VALUE = "???";
private final String pid; private final String pid;
/** /**
* Private constructor. * Private constructor.
*/ */
private ProcessIdPatternConverter(final String... options) { private ProcessIdPatternConverter(final String... options) {
super("Process ID", "pid"); super("Process ID", "pid");
final String defaultValue = options.length > 0 ? options[0] : DEFAULT_DE FAULT_VALUE; final String defaultValue = options.length > 0 ? options[0] : DEFAULT_DE FAULT_VALUE;
String discoveredPid = ProcessIdUtil.getProcessId(); final String discoveredPid = ProcessIdUtil.getProcessId();
pid = discoveredPid.equals(ProcessIdUtil.DEFAULT_PROCESSID) ? defaultVal ue : discoveredPid; pid = discoveredPid.equals(ProcessIdUtil.DEFAULT_PROCESSID) ? defaultVal ue : discoveredPid;
} }
/** /**
* Returns the process ID. * Returns the process ID.
* @return the process ID * @return the process ID
*/ */
public String getProcessId() { public String getProcessId() {
return pid; return pid;
} }
 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)