Package org.logevents.observers
Class LogEventBuffer
- java.lang.Object
-
- org.logevents.observers.LogEventBuffer
-
- All Implemented Interfaces:
LogEventObserver,LogEventSource
public class LogEventBuffer extends Object implements LogEventObserver, LogEventSource
In-memory implementation ofLogEventSourceto be used withWebLogEventObserver
-
-
Constructor Summary
Constructors Constructor Description LogEventBuffer()LogEventBuffer(String nodeName, String applicationName, JsonMessageFormatter jsonMessageFormatter, JsonExceptionFormatter exceptionFormatter)LogEventBuffer(Map<String,String> properties, String prefix)LogEventBuffer(Configuration config)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidclear()voidlogEvent(LogEvent logEvent)LogEventQueryResultquery(LogEventQuery query)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.logevents.LogEventObserver
filteredOn, isEnabled, isEnabled, stream, toList
-
-
-
-
Constructor Detail
-
LogEventBuffer
public LogEventBuffer()
-
LogEventBuffer
public LogEventBuffer(Configuration config)
-
LogEventBuffer
public LogEventBuffer(String nodeName, String applicationName, JsonMessageFormatter jsonMessageFormatter, JsonExceptionFormatter exceptionFormatter)
-
-
Method Detail
-
clear
public static void clear()
-
logEvent
public void logEvent(LogEvent logEvent)
- Specified by:
logEventin interfaceLogEventObserver
-
query
public LogEventQueryResult query(LogEventQuery query)
- Specified by:
queryin interfaceLogEventSource
-
-