public class TestAppender extends org.apache.logging.log4j.core.appender.AbstractAppender
Modifier and Type | Class and Description |
---|---|
static class |
TestAppender.Expectation |
org.apache.logging.log4j.core.LifeCycle.State
LOGGER
Constructor and Description |
---|
TestAppender(String name,
org.apache.logging.log4j.core.Filter filter,
org.apache.logging.log4j.core.Layout<? extends Serializable> layout) |
TestAppender(String name,
org.apache.logging.log4j.core.Filter filter,
org.apache.logging.log4j.core.Layout<? extends Serializable> layout,
boolean ignoreExceptions) |
Modifier and Type | Method and Description |
---|---|
void |
append(org.apache.logging.log4j.core.LogEvent event) |
void |
clear() |
void |
ensure(Set<TestAppender.Expectation> expectationsToCheck) |
void |
ensure(TestAppender.Expectation... expectationsToCheck) |
error, error, error, getHandler, getLayout, getName, ignoreExceptions, parseInt, setHandler, toString
addFilter, getFilter, hasFilter, isFiltered, removeFilter, start, stop
equalsImpl, getState, hashCodeImpl, initialize, isInitialized, isStarted, isStarting, isStopped, isStopping, setStarted, setStarting, setState, setStopped, setStopping
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getState, initialize, isStarted, isStopped, start, stop
public TestAppender(String name, org.apache.logging.log4j.core.Filter filter, org.apache.logging.log4j.core.Layout<? extends Serializable> layout)
public TestAppender(String name, org.apache.logging.log4j.core.Filter filter, org.apache.logging.log4j.core.Layout<? extends Serializable> layout, boolean ignoreExceptions)
public void clear()
public void ensure(TestAppender.Expectation... expectationsToCheck)
public void ensure(Set<TestAppender.Expectation> expectationsToCheck)
public void append(org.apache.logging.log4j.core.LogEvent event)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.