public static class Log4jLogEvent.Builder extends Object implements Builder<LogEvent>
public Log4jLogEvent.Builder setLevel(org.apache.logging.log4j.Level level)
public Log4jLogEvent.Builder setLoggerFqcn(String loggerFqcn)
public Log4jLogEvent.Builder setLoggerName(String loggerName)
public Log4jLogEvent.Builder setMarker(org.apache.logging.log4j.Marker marker)
public Log4jLogEvent.Builder setMessage(org.apache.logging.log4j.message.Message message)
public Log4jLogEvent.Builder setThrown(Throwable thrown)
public Log4jLogEvent.Builder setTimeMillis(long timeMillis)
public Log4jLogEvent.Builder setInstant(Instant instant)
public Log4jLogEvent.Builder setThrownProxy(ThrowableProxy thrownProxy)
@Deprecated public Log4jLogEvent.Builder setContextMap(Map<String,String> contextMap)
public Log4jLogEvent.Builder setContextData(org.apache.logging.log4j.util.StringMap contextData)
public Log4jLogEvent.Builder setContextStack(org.apache.logging.log4j.ThreadContext.ContextStack contextStack)
public Log4jLogEvent.Builder setThreadId(long threadId)
public Log4jLogEvent.Builder setThreadName(String threadName)
public Log4jLogEvent.Builder setThreadPriority(int threadPriority)
public Log4jLogEvent.Builder setSource(StackTraceElement source)
public Log4jLogEvent.Builder setIncludeLocation(boolean includeLocation)
public Log4jLogEvent.Builder setEndOfBatch(boolean endOfBatch)
public Log4jLogEvent.Builder setNanoTime(long nanoTime)
nanoTime
- The value of the running Java Virtual Machine's high-resolution time source when the event
was created.Copyright © 1999-2019 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.