Class LogListener
- java.lang.Object
-
- hudson.console.ConsoleLogFilter
-
- com.sumologic.jenkins.jenkinssumologicplugin.sender.LogListener
-
- All Implemented Interfaces:
ExtensionPoint
,Serializable
@Extension(ordinal=-1.0) public class LogListener extends ConsoleLogFilter implements Serializable
This class intercepts console output stream for every jenkins build and decorates it with additional functionality. Depending on configuration it can add two functionalities: 1) Add consistent timestamps to all output lines. 2) Forward all output logs to Sumo Logic.Created by lukasz on 3/21/17.
Modified By Sourabh Jain 5/2019
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description LogListener()
LogListener(Run build)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutputStream
decorateLogger(Computer computer, OutputStream logger)
OutputStream
decorateLogger(Run build, OutputStream outputStream)
-
Methods inherited from class hudson.console.ConsoleLogFilter
all, decorateLogger
-
-
-
-
Constructor Detail
-
LogListener
public LogListener()
-
LogListener
public LogListener(Run build)
-
-
Method Detail
-
decorateLogger
public OutputStream decorateLogger(Run build, OutputStream outputStream)
- Overrides:
decorateLogger
in classConsoleLogFilter
-
decorateLogger
public OutputStream decorateLogger(@Nonnull Computer computer, OutputStream logger)
- Overrides:
decorateLogger
in classConsoleLogFilter
-
-