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 ofLogEventSource
to 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 void
clear()
void
logEvent(LogEvent logEvent)
LogEventQueryResult
query(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:
logEvent
in interfaceLogEventObserver
-
query
public LogEventQueryResult query(LogEventQuery query)
- Specified by:
query
in interfaceLogEventSource
-
-