public abstract class ConsoleLogFilter extends Object implements ExtensionPoint
ConsoleAnnotator and ConsoleNote, this class provides
direct access to the underlying OutputStream so it's possible to suppress
data, which isn't possible from the other interfaces.
(ArgumentListBuilder.add(String, boolean) is a simpler way to suppress a single password.)BuildWrapper.decorateLogger(hudson.model.AbstractBuild, java.io.OutputStream)ExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
ConsoleLogFilter() |
| Modifier and Type | Method and Description |
|---|---|
static ExtensionList<ConsoleLogFilter> |
all()
All the registered
ConsoleLogFilters. |
OutputStream |
decorateLogger(AbstractBuild build,
OutputStream logger)
Deprecated.
as of 1.632. Use
decorateLogger(Run, OutputStream) |
OutputStream |
decorateLogger(Computer computer,
OutputStream logger)
Called to decorate logger for master/slave communication.
|
OutputStream |
decorateLogger(Run build,
OutputStream logger)
Called on the start of each build, giving extensions a chance to intercept
the data that is written to the log.
|
public OutputStream decorateLogger(AbstractBuild build, OutputStream logger) throws IOException, InterruptedException
decorateLogger(Run, OutputStream)IOExceptionInterruptedExceptionpublic OutputStream decorateLogger(Run build, OutputStream logger) throws IOException, InterruptedException
Even though this method is not marked 'abstract', this is the method that must be overridden by extensions.
IOExceptionInterruptedExceptionpublic OutputStream decorateLogger(@Nonnull Computer computer, OutputStream logger) throws IOException, InterruptedException
computer - Slave computer for which the logger is getting decorated. Useful to do
contextual decoration.IOExceptionInterruptedExceptionpublic static ExtensionList<ConsoleLogFilter> all()
ConsoleLogFilters.Copyright © 2019. All rights reserved.