Package hudson.util
Class RingBufferLogHandler
java.lang.Object
java.util.logging.Handler
hudson.util.RingBufferLogHandler
Log
Handler
that stores the log records into a ring buffer.- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
-
Method Summary
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
-
Constructor Details
-
RingBufferLogHandler
Deprecated.This constructor is deprecated. It can't access system properties withSystemProperties
as it's not legal to use it on remoting agents. -
RingBufferLogHandler
public RingBufferLogHandler(int ringSize)
-
-
Method Details
-
getDefaultRingBufferSize
public static int getDefaultRingBufferSize()- Returns:
- int DEFAULT_RING_BUFFER_SIZE
- Since:
- 2.259
- See Also:
-
publish
-
clear
public void clear() -
getView
Returns the list view ofLogRecord
s in the ring buffer.New records are always placed early in the list.
-
flush
public void flush() -
close
- Specified by:
close
in classHandler
- Throws:
SecurityException
-
RingBufferLogHandler(int)