MemoryHandler
Class MemoryHandler
- java.lang.Object
-
- java.util.logging.Handler
-
- java.util.logging.MemoryHandler
public class MemoryHandler extends Handler
Handler
that buffers requests in a circular buffer in memory.
Normally this Handler
simply stores incoming LogRecords
into its memory buffer and discards earlier records. This buffering is very cheap and avoids formatting costs. On certain trigger conditions, the MemoryHandler
will push out its current buffer contents to a target Handler
, which will typically publish them to the outside world.
There are three main models for triggering a push of the buffer:
- An incoming <