@Plugin(name="TerminalConsole",
category="Core",
elementType="appender",
printObject=true)
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(java.util.function.Function<java.lang.String,java.lang.String> format) |
void |
start() |
error, error, error, getHandler, getLayout, getName, ignoreExceptions, parseInt, setHandler, toString
addFilter, getFilter, hasFilter, isFiltered, removeFilter, stop, stop
equalsImpl, getState, getStatusLogger, hashCodeImpl, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping, stop, stop
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(java.util.function.Function<java.lang.String,java.lang.String> format)
@PluginFactory @Nullable public static TerminalConsoleAppender createAppender(@PluginAttribute(value="name") java.lang.String name, @PluginElement(value="Filters") org.apache.logging.log4j.core.Filter filter, @PluginElement(value="Layout") org.apache.logging.log4j.core.Layout<? extends java.io.Serializable> layout, @PluginAttribute(value="ignoreExceptions") java.lang.String ignore)
public void start()
start
in interface org.apache.logging.log4j.core.LifeCycle
start
in class org.apache.logging.log4j.core.filter.AbstractFilterable
public void append(org.apache.logging.log4j.core.LogEvent event)
protected java.lang.String formatEvent(org.apache.logging.log4j.core.LogEvent event)