public static class ServletAppender.Builder<B extends ServletAppender.Builder<B>> extends org.apache.logging.log4j.core.appender.AbstractAppender.Builder<B> implements org.apache.logging.log4j.core.util.Builder<ServletAppender>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ServletAppender |
build() |
boolean |
isLogThrowables()
Logs with
ServletContext.log(String, Throwable) if true and with ServletContext.log(String) if false. |
void |
setLogThrowables(boolean logThrowables)
Logs with
ServletContext.log(String, Throwable) if true and with ServletContext.log(String) if false. |
getConfiguration, getLayout, getName, getOrCreateLayout, getOrCreateLayout, isIgnoreExceptions, setConfiguration, setIgnoreExceptions, setLayout, setName, withConfiguration, withIgnoreExceptions, withLayout, withName
public Builder()
public ServletAppender build()
build
in interface org.apache.logging.log4j.core.util.Builder<ServletAppender>
public boolean isLogThrowables()
ServletContext.log(String, Throwable)
if true and with ServletContext.log(String)
if false.public void setLogThrowables(boolean logThrowables)
ServletContext.log(String, Throwable)
if true and with ServletContext.log(String)
if false.Copyright © 1999-1969 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.