Package com.microstrategy.utils.log
Class InMemoryHandler
- java.lang.Object
-
- com.microstrategy.utils.log.Handler
-
- com.microstrategy.utils.log.InMemoryHandler
-
- All Implemented Interfaces:
Configurable
public class InMemoryHandler extends Handler
This handler keeps track in memory of all published records until flush is called.- Since:
- MicroStrategy Web 9.0.0
-
-
Constructor Summary
Constructors Constructor Description InMemoryHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
flush()
LogRecord[]
getRecords()
Returns an array with the LogRecords that have been published.void
publish(LogRecord record)
-
Methods inherited from class com.microstrategy.utils.log.Handler
configure, getEncoding, getEncodingSchemeSetting, getException, getFilter, getFilterSetting, getFormatter, getFormatterSetting, getLevel, getLevelSetting, getStringSettingWithDefaultValue, isLoggable, setEncoding, setException, setFilter, setFormatter, setLevel
-
-
-
-
Method Detail
-
getRecords
public LogRecord[] getRecords()
Returns an array with the LogRecords that have been published.
-
-