Package org.apache.jmeter.gui.logging
Class GuiLogEventAppender
-
- All Implemented Interfaces:
-
org.apache.logging.log4j.core.Appender
,org.apache.logging.log4j.core.LifeCycle
,org.apache.logging.log4j.core.LifeCycle2
,org.apache.logging.log4j.core.filter.Filterable
,org.apache.logging.log4j.core.impl.LocationAware
@Plugin(name = "GuiLogEvent", category = "Core", elementType = "appender", printObject = true) public class GuiLogEventAppender extends AbstractAppender
Posts log events to a GuiLogEventBus.
- Since:
3.2
-
-
Field Summary
Fields Modifier and Type Field Description public final String
name
public final Layout<out Serializable>
layout
public ErrorHandler
handler
public volatile Filter
filter
public final Array<Property>
propertyArray
public final static String
ELEMENT_TYPE
public final static Array<Appender>
EMPTY_ARRAY
public final static int
DEFAULT_STOP_TIMEOUT
public final static TimeUnit
DEFAULT_STOP_TIMEUNIT
public volatile LifeCycle.State
state
-
Method Summary
Modifier and Type Method Description void
append(LogEvent logEvent)
static GuiLogEventAppender
createAppender(@PluginAttribute(value = "name") String name, @PluginAttribute(value = "ignoreExceptions") boolean ignoreExceptions, @PluginElement(value = "Layout") Layout<out Serializable> layout, @PluginElement(value = "Filters") Filter filter)
StringLayout
getStringLayout()
-
Methods inherited from class org.apache.logging.log4j.core.appender.AbstractAppender
error, getHandler, getLayout, getName, ignoreExceptions, parseInt, requiresLocation, setHandler, toString
-
Methods inherited from class org.apache.logging.log4j.core.filter.AbstractFilterable
addFilter, getFilter, getPropertyArray, hasFilter, isFiltered, removeFilter, start, stop
-
Methods inherited from class org.apache.logging.log4j.core.AbstractLifeCycle
getState, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, stop
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
append
void append(LogEvent logEvent)
-
createAppender
@PluginFactory() static GuiLogEventAppender createAppender(@PluginAttribute(value = "name") String name, @PluginAttribute(value = "ignoreExceptions") boolean ignoreExceptions, @PluginElement(value = "Layout") Layout<out Serializable> layout, @PluginElement(value = "Filters") Filter filter)
-
getStringLayout
StringLayout getStringLayout()
-
-
-
-