Class MemoryAppender
java.lang.Object
ch.qos.logback.core.spi.ContextAwareBase
ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
com.inductiveautomation.ignition.common.util.logging.MemoryAppender
- All Implemented Interfaces:
- ch.qos.logback.core.Appender<ch.qos.logback.classic.spi.ILoggingEvent>,- ch.qos.logback.core.spi.ContextAware,- ch.qos.logback.core.spi.FilterAttachable<ch.qos.logback.classic.spi.ILoggingEvent>,- ch.qos.logback.core.spi.LifeCycle
public class MemoryAppender
extends ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
- 
Field SummaryFieldsFields inherited from class ch.qos.logback.core.AppenderBasename, startedFields inherited from class ch.qos.logback.core.spi.ContextAwareBasecontext
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidappend(ch.qos.logback.classic.spi.ILoggingEvent event) voidclear()voidclose()List<ch.qos.logback.classic.spi.ILoggingEvent>Retrieves the entire list of eventsList<ch.qos.logback.classic.spi.ILoggingEvent>Retrieves the most recent events with the given filtering arguments applied.intgetSize()booleanvoidresize(int newSize) Methods inherited from class ch.qos.logback.core.AppenderBaseaddFilter, clearAllFilters, doAppend, getCopyOfAttachedFiltersList, getFilterChainDecision, getName, isStarted, setName, start, stop, toStringMethods inherited from class ch.qos.logback.core.spi.ContextAwareBaseaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContextMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.qos.logback.core.spi.ContextAwareaddError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, setContext
- 
Field Details- 
NAME- See Also:
 
 
- 
- 
Constructor Details- 
MemoryAppenderpublic MemoryAppender()
 
- 
- 
Method Details- 
appendprotected void append(ch.qos.logback.classic.spi.ILoggingEvent event) - Specified by:
- appendin class- ch.qos.logback.core.AppenderBase<ch.qos.logback.classic.spi.ILoggingEvent>
 
- 
getEventsRetrieves the entire list of events
- 
getEventspublic List<ch.qos.logback.classic.spi.ILoggingEvent> getEvents(int limit, String logNameMatch, ch.qos.logback.classic.Level minSeverity) Retrieves the most recent events with the given filtering arguments applied.- Parameters:
- limit- Up to this many events will be returned.
- logNameMatch- if non-null/non-empty, the event's logger name must contain this text (case insensitive) in order to match.
- minSeverity- Only events with the given severity level or greater will be returned.
 
- 
resizepublic void resize(int newSize) 
- 
clearpublic void clear()
- 
getSizepublic int getSize()
- 
closepublic void close()
- 
requiresLayoutpublic boolean requiresLayout()
 
-