Package hudson.util
Class RingBufferLogHandler
- java.lang.Object
-
- java.util.logging.Handler
-
- hudson.util.RingBufferLogHandler
-
-
Constructor Summary
Constructors Constructor Description RingBufferLogHandler()Deprecated.RingBufferLogHandler(int ringSize)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voidclose()voidflush()static intgetDefaultRingBufferSize()List<LogRecord>getView()Returns the list view ofLogRecords in the ring buffer.voidpublish(LogRecord record)-
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
-
-
-
-
Constructor Detail
-
RingBufferLogHandler
@Deprecated public RingBufferLogHandler()
Deprecated.This constructor is deprecated. It can't access system properties withSystemPropertiesas it's not legal to use it on remoting agents.
-
RingBufferLogHandler
public RingBufferLogHandler(int ringSize)
-
-
Method Detail
-
getDefaultRingBufferSize
public static int getDefaultRingBufferSize()
- Returns:
- int DEFAULT_RING_BUFFER_SIZE
- Since:
- 2.259
- See Also:
- JENKINS-50669
-
clear
public void clear()
-
getView
public List<LogRecord> getView()
Returns the list view ofLogRecords in the ring buffer.New records are always placed early in the list.
-
close
public void close() throws SecurityException- Specified by:
closein classHandler- Throws:
SecurityException
-
-