Class TeeBuildListener
- java.lang.Object
-
- io.jenkins.plugins.opentelemetry.job.log.util.TeeBuildListener
-
- All Implemented Interfaces:
BuildListener
,TaskListener
,Serializable
,AutoCloseable
,org.jenkinsci.remoting.SerializableOnlyOverRemoting
public final class TeeBuildListener extends Object implements BuildListener, AutoCloseable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface hudson.model.TaskListener
NULL
-
-
Constructor Summary
Constructors Constructor Description TeeBuildListener(TaskListener main, TaskListener secondary)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
PrintStream
getLogger()
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface hudson.model.BuildListener
finished, started
-
Methods inherited from interface org.jenkinsci.remoting.SerializableOnlyOverRemoting
getChannelForSerialization
-
Methods inherited from interface hudson.model.TaskListener
annotate, error, error, fatalError, fatalError, getCharset, hyperlink
-
-
-
-
Constructor Detail
-
TeeBuildListener
public TeeBuildListener(TaskListener main, TaskListener secondary)
-
-
Method Detail
-
getLogger
@NonNull public PrintStream getLogger()
- Specified by:
getLogger
in interfaceTaskListener
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-
-