The MemoryHandler is intended for use as a quick way to store messages.
The messages have to be sent to another handler to write them to an external source. Because the buffer is circular, older log records eventually are overwritten by newer records.
The properties on the MemoryHandler are listed in the following table.
Property Name | Description | Default Value |
MemoryHandler.level | Log level for the handler | Level.INFO |
MemoryHandler.filter | Filter to use | undefined |
MemoryHandler.size | Size of the circular buffer (in bytes) | 1,000 |
MemoryHandler.push | Defines the push level — the minimum level that will cause messages to be sent to the target handler | Level.SEVERE |
MemoryHandler.target | Specifies the name of the target Handler class | (undefined) |