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 void
clear()
void
close()
void
flush()
static int
getDefaultRingBufferSize()
List<LogRecord>
getView()
Returns the list view ofLogRecord
s in the ring buffer.void
publish(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 withSystemProperties
as 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 ofLogRecord
s in the ring buffer.New records are always placed early in the list.
-
close
public void close() throws SecurityException
- Specified by:
close
in classHandler
- Throws:
SecurityException
-
-