Class CustomLogHandler
java.lang.Object
java.util.logging.Handler
org.jenkinsci.plugins.sshsteps.util.CustomLogHandler
Custom log handler for hidetake's library with buffering and rate limiting support.
- Author:
- Naresh Rayapati
-
Constructor Summary
ConstructorsConstructorDescriptionCustomLogHandler(PrintStream logger, String uuid) Constructor with default buffering.CustomLogHandler(PrintStream logger, String uuid, int bufferSize, long flushIntervalMs, long rateLimitLinesPerSec) Constructor with configurable buffering and rate limiting. -
Method Summary
Methods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
-
Constructor Details
-
CustomLogHandler
Constructor with default buffering.- Parameters:
logger- PrintStream to print messages to.uuid- Execution UUID for filtering.
-
CustomLogHandler
public CustomLogHandler(PrintStream logger, String uuid, int bufferSize, long flushIntervalMs, long rateLimitLinesPerSec) Constructor with configurable buffering and rate limiting.- Parameters:
logger- PrintStream to print messages to.uuid- Execution UUID for filtering.bufferSize- Number of lines to buffer before flushing.flushIntervalMs- Time in milliseconds between flushes.rateLimitLinesPerSec- Maximum lines per second (0 to disable).
-
-
Method Details