@Deprecated public class MemoryAppender extends MemoryAppender
MemoryAppender.MemoryAppenderBuilder
Modifier | Constructor and Description |
---|---|
protected |
MemoryAppender(String name,
org.apache.logging.log4j.core.Filter filter,
org.apache.logging.log4j.core.StringLayout layout,
boolean ignoreExceptions,
org.apache.logging.log4j.core.config.Property[] properties,
int bufferSize)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addFilter(org.apache.logging.log4j.core.Filter filter)
Deprecated.
|
void |
append(org.apache.logging.log4j.core.LogEvent logEvent)
Deprecated.
|
void |
error(String msg)
Deprecated.
|
void |
error(String msg,
org.apache.logging.log4j.core.LogEvent event,
Throwable t)
Deprecated.
|
void |
error(String msg,
Throwable t)
Deprecated.
|
int |
getBufferSize()
Deprecated.
|
org.apache.logging.log4j.core.Filter |
getFilter()
Deprecated.
|
org.apache.logging.log4j.core.ErrorHandler |
getHandler()
Deprecated.
|
org.apache.logging.log4j.core.Layout<? extends Serializable> |
getLayout()
Deprecated.
|
List<String> |
getLogLines()
Deprecated.
|
String |
getName()
Deprecated.
|
org.apache.logging.log4j.core.config.Property[] |
getPropertyArray()
Deprecated.
|
org.apache.logging.log4j.core.LifeCycle.State |
getState()
Deprecated.
|
boolean |
hasFilter()
Deprecated.
|
boolean |
ignoreExceptions()
Deprecated.
|
void |
initialize()
Deprecated.
|
boolean |
isFiltered(org.apache.logging.log4j.core.LogEvent event)
Deprecated.
|
boolean |
isInitialized()
Deprecated.
|
boolean |
isStarted()
Deprecated.
|
boolean |
isStarting()
Deprecated.
|
boolean |
isStopped()
Deprecated.
|
boolean |
isStopping()
Deprecated.
|
void |
removeFilter(org.apache.logging.log4j.core.Filter filter)
Deprecated.
|
boolean |
requiresLocation()
Deprecated.
|
void |
setHandler(org.apache.logging.log4j.core.ErrorHandler handler)
Deprecated.
|
void |
start()
Deprecated.
|
void |
stop()
Deprecated.
|
boolean |
stop(long timeout,
TimeUnit timeUnit)
Deprecated.
|
String |
toString()
Deprecated.
|
createAppender, newBuilder
parseInt, toSerializable
protected MemoryAppender(String name, org.apache.logging.log4j.core.Filter filter, org.apache.logging.log4j.core.StringLayout layout, boolean ignoreExceptions, org.apache.logging.log4j.core.config.Property[] properties, int bufferSize)
public void append(org.apache.logging.log4j.core.LogEvent logEvent)
append
in interface org.apache.logging.log4j.core.Appender
append
in class MemoryAppender
public int getBufferSize()
getBufferSize
in class MemoryAppender
public List<String> getLogLines()
getLogLines
in class MemoryAppender
public boolean requiresLocation()
requiresLocation
in interface org.apache.logging.log4j.core.impl.LocationAware
requiresLocation
in class org.apache.logging.log4j.core.appender.AbstractAppender
public void error(String msg)
error
in class org.apache.logging.log4j.core.appender.AbstractAppender
public void error(String msg, org.apache.logging.log4j.core.LogEvent event, Throwable t)
error
in class org.apache.logging.log4j.core.appender.AbstractAppender
public void error(String msg, Throwable t)
error
in class org.apache.logging.log4j.core.appender.AbstractAppender
public org.apache.logging.log4j.core.ErrorHandler getHandler()
getHandler
in interface org.apache.logging.log4j.core.Appender
getHandler
in class org.apache.logging.log4j.core.appender.AbstractAppender
public org.apache.logging.log4j.core.Layout<? extends Serializable> getLayout()
getLayout
in interface org.apache.logging.log4j.core.Appender
getLayout
in class org.apache.logging.log4j.core.appender.AbstractAppender
public String getName()
getName
in interface org.apache.logging.log4j.core.Appender
getName
in class org.apache.logging.log4j.core.appender.AbstractAppender
public boolean ignoreExceptions()
ignoreExceptions
in interface org.apache.logging.log4j.core.Appender
ignoreExceptions
in class org.apache.logging.log4j.core.appender.AbstractAppender
public void setHandler(org.apache.logging.log4j.core.ErrorHandler handler)
setHandler
in interface org.apache.logging.log4j.core.Appender
setHandler
in class org.apache.logging.log4j.core.appender.AbstractAppender
public String toString()
toString
in class org.apache.logging.log4j.core.appender.AbstractAppender
public void addFilter(org.apache.logging.log4j.core.Filter filter)
addFilter
in interface org.apache.logging.log4j.core.filter.Filterable
addFilter
in class org.apache.logging.log4j.core.filter.AbstractFilterable
public org.apache.logging.log4j.core.Filter getFilter()
getFilter
in interface org.apache.logging.log4j.core.filter.Filterable
getFilter
in class org.apache.logging.log4j.core.filter.AbstractFilterable
public boolean hasFilter()
hasFilter
in interface org.apache.logging.log4j.core.filter.Filterable
hasFilter
in class org.apache.logging.log4j.core.filter.AbstractFilterable
public boolean isFiltered(org.apache.logging.log4j.core.LogEvent event)
isFiltered
in interface org.apache.logging.log4j.core.filter.Filterable
isFiltered
in class org.apache.logging.log4j.core.filter.AbstractFilterable
public void removeFilter(org.apache.logging.log4j.core.Filter filter)
removeFilter
in interface org.apache.logging.log4j.core.filter.Filterable
removeFilter
in class org.apache.logging.log4j.core.filter.AbstractFilterable
public void start()
start
in interface org.apache.logging.log4j.core.LifeCycle
start
in class org.apache.logging.log4j.core.filter.AbstractFilterable
public boolean stop(long timeout, TimeUnit timeUnit)
stop
in interface org.apache.logging.log4j.core.LifeCycle2
stop
in class org.apache.logging.log4j.core.filter.AbstractFilterable
public org.apache.logging.log4j.core.config.Property[] getPropertyArray()
getPropertyArray
in class org.apache.logging.log4j.core.filter.AbstractFilterable
public org.apache.logging.log4j.core.LifeCycle.State getState()
getState
in interface org.apache.logging.log4j.core.LifeCycle
getState
in class org.apache.logging.log4j.core.AbstractLifeCycle
public boolean isInitialized()
isInitialized
in class org.apache.logging.log4j.core.AbstractLifeCycle
public boolean isStarted()
isStarted
in interface org.apache.logging.log4j.core.LifeCycle
isStarted
in class org.apache.logging.log4j.core.AbstractLifeCycle
public boolean isStarting()
isStarting
in class org.apache.logging.log4j.core.AbstractLifeCycle
public boolean isStopped()
isStopped
in interface org.apache.logging.log4j.core.LifeCycle
isStopped
in class org.apache.logging.log4j.core.AbstractLifeCycle
public boolean isStopping()
isStopping
in class org.apache.logging.log4j.core.AbstractLifeCycle
public void initialize()
initialize
in interface org.apache.logging.log4j.core.LifeCycle
initialize
in class org.apache.logging.log4j.core.AbstractLifeCycle
public void stop()
stop
in interface org.apache.logging.log4j.core.LifeCycle
stop
in class org.apache.logging.log4j.core.AbstractLifeCycle
Copyright © 2024 OpenMRS Inc.. All rights reserved.