public class TerminalConsoleAppender
extends org.apache.logging.log4j.core.appender.AbstractAppender
Modifier | Constructor and Description |
---|---|
protected |
TerminalConsoleAppender(java.lang.String name,
org.apache.logging.log4j.core.Filter filter,
org.apache.logging.log4j.core.Layout<? extends java.io.Serializable> layout,
boolean ignoreExceptions) |
Modifier and Type | Method and Description |
---|---|
void |
append(org.apache.logging.log4j.core.LogEvent event) |
static TerminalConsoleAppender |
createAppender(java.lang.String name,
org.apache.logging.log4j.core.Filter filter,
org.apache.logging.log4j.core.Layout<? extends java.io.Serializable> layout,
java.lang.String ignore) |
protected java.lang.String |
formatEvent(org.apache.logging.log4j.core.LogEvent event) |
static jline.console.ConsoleReader |
getReader() |
static void |
setFormatter(com.google.common.base.Function<java.lang.String,java.lang.String> format) |
void |
start() |
error, error, error, getHandler, getLayout, getName, ignoreExceptions, isStarted, parseInt, setHandler, stop, toString
protected TerminalConsoleAppender(java.lang.String name, org.apache.logging.log4j.core.Filter filter, org.apache.logging.log4j.core.Layout<? extends java.io.Serializable> layout, boolean ignoreExceptions)
public static jline.console.ConsoleReader getReader()
public static void setFormatter(com.google.common.base.Function<java.lang.String,java.lang.String> format)
@Nullable public static TerminalConsoleAppender createAppender(java.lang.String name, org.apache.logging.log4j.core.Filter filter, org.apache.logging.log4j.core.Layout<? extends java.io.Serializable> layout, java.lang.String ignore)
public void start()
start
in interface org.apache.logging.log4j.core.LifeCycle
start
in class org.apache.logging.log4j.core.appender.AbstractAppender
public void append(org.apache.logging.log4j.core.LogEvent event)
protected java.lang.String formatEvent(org.apache.logging.log4j.core.LogEvent event)