public Builder()
public Builder(LogEvent other)
public Log4jLogEvent.Builder setLevel(Level level)
public Log4jLogEvent.Builder setLoggerFqcn(String loggerFqcn)
public Log4jLogEvent.Builder setLoggerName(String loggerName)
public Log4jLogEvent.Builder setMarker(Marker marker)
public Log4jLogEvent.Builder setMessage(Message message)
public Log4jLogEvent.Builder setThrown(Throwable thrown)
public Log4jLogEvent.Builder setTimeMillis(long timeMillis)
public Log4jLogEvent.Builder setThrownProxy(ThrowableProxy thrownProxy)
public Log4jLogEvent.Builder setContextMap(Map<String,String> contextMap)
public Log4jLogEvent.Builder setContextStack(ThreadContext.ContextStack contextStack)
public Log4jLogEvent.Builder setThreadName(String threadName)
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.public Log4jLogEvent build()
Builder
Copyright © 1999-2017 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.