"Fossies" - the Fresh Open Source Software Archive  

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

Log4jLogEvent.java  (apache-log4j-2.11.1-src):Log4jLogEvent.java  (apache-log4j-2.11.2-src)
skipping to change at line 88 skipping to change at line 88
/** LogEvent Builder helper class. */ /** LogEvent Builder helper class. */
public static class Builder implements org.apache.logging.log4j.core.util.Bu ilder<LogEvent> { public static class Builder implements org.apache.logging.log4j.core.util.Bu ilder<LogEvent> {
private String loggerFqcn; private String loggerFqcn;
private Marker marker; private Marker marker;
private Level level; private Level level;
private String loggerName; private String loggerName;
private Message message; private Message message;
private Throwable thrown; private Throwable thrown;
private MutableInstant instant = new MutableInstant(); private final MutableInstant instant = new MutableInstant();
private ThrowableProxy thrownProxy; private ThrowableProxy thrownProxy;
private StringMap contextData = createContextData((List<Property>) null) ; private StringMap contextData = createContextData((List<Property>) null) ;
private ThreadContext.ContextStack contextStack = ThreadContext.getImmut ableStack(); private ThreadContext.ContextStack contextStack = ThreadContext.getImmut ableStack();
private long threadId; private long threadId;
private String threadName; private String threadName;
private int threadPriority; private int threadPriority;
private StackTraceElement source; private StackTraceElement source;
private boolean includeLocation; private boolean includeLocation;
private boolean endOfBatch = false; private boolean endOfBatch = false;
private long nanoTime; private long nanoTime;
skipping to change at line 420 skipping to change at line 420
* @param nanoOfMillisecond the nanoseconds within the millisecond, always p ositive, never exceeds {@code 999,999} * @param nanoOfMillisecond the nanoseconds within the millisecond, always p ositive, never exceeds {@code 999,999}
* @param nanoTime The value of the running Java Virtual Machine's high-reso lution time source when the event was * @param nanoTime The value of the running Java Virtual Machine's high-reso lution time source when the event was
* created. * created.
*/ */
private Log4jLogEvent(final String loggerName, final Marker marker, final St ring loggerFQCN, final Level level, private Log4jLogEvent(final String loggerName, final Marker marker, final St ring loggerFQCN, final Level level,
final Message message, final Throwable thrown, final ThrowableProxy thrownProxy, final Message message, final Throwable thrown, final ThrowableProxy thrownProxy,
final StringMap contextData, final ThreadContext.ContextStack contex tStack, final long threadId, final StringMap contextData, final ThreadContext.ContextStack contex tStack, final long threadId,
final String threadName, final int threadPriority, final StackTraceE lement source, final String threadName, final int threadPriority, final StackTraceE lement source,
final long timestampMillis, final int nanoOfMillisecond, final long nanoTime) { final long timestampMillis, final int nanoOfMillisecond, final long nanoTime) {
this(loggerName, marker, loggerFQCN, level, message, thrown, thrownProxy , contextData, contextStack, threadId, threadName, threadPriority, source, nanoT ime); this(loggerName, marker, loggerFQCN, level, message, thrown, thrownProxy , contextData, contextStack, threadId, threadName, threadPriority, source, nanoT ime);
long millis = message instanceof TimestampMessage final long millis = message instanceof TimestampMessage
? ((TimestampMessage) message).getTimestamp() ? ((TimestampMessage) message).getTimestamp()
: timestampMillis; : timestampMillis;
instant.initFromEpochMilli(millis, nanoOfMillisecond); instant.initFromEpochMilli(millis, nanoOfMillisecond);
} }
private Log4jLogEvent(final String loggerName, final Marker marker, final St ring loggerFQCN, final Level level, private Log4jLogEvent(final String loggerName, final Marker marker, final St ring loggerFQCN, final Level level,
final Message message, final Throwable thrown, final T hrowableProxy thrownProxy, final Message message, final Throwable thrown, final T hrowableProxy thrownProxy,
final StringMap contextData, final ThreadContext.Conte xtStack contextStack, final long threadId, final StringMap contextData, final ThreadContext.Conte xtStack contextStack, final long threadId,
final String threadName, final int threadPriority, fin al StackTraceElement source, final String threadName, final int threadPriority, fin al StackTraceElement source,
final Clock clock, final long nanoTime) { final Clock clock, final long nanoTime) {
this(loggerName, marker, loggerFQCN, level, message, thrown, thrownProxy , contextData, contextStack, threadId, threadName, threadPriority, source, nanoT ime); this(loggerName, marker, loggerFQCN, level, message, thrown, thrownProxy , contextData, contextStack, threadId, threadName, threadPriority, source, nanoT ime);
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

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