Package hudson.util
Class LogTaskListener
- java.lang.Object
-
- hudson.util.AbstractTaskListener
-
- hudson.util.LogTaskListener
-
- All Implemented Interfaces:
TaskListener
,Closeable
,Serializable
,AutoCloseable
,org.jenkinsci.remoting.SerializableOnlyOverRemoting
public class LogTaskListener extends AbstractTaskListener implements TaskListener, Closeable
TaskListener
which sends messages to aLogger
.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface hudson.model.TaskListener
NULL
-
-
Constructor Summary
Constructors Constructor Description LogTaskListener(Logger logger, Level level)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
PrintStream
getLogger()
This writer will receive the output of the build-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jenkinsci.remoting.SerializableOnlyOverRemoting
getChannelForSerialization
-
Methods inherited from interface hudson.model.TaskListener
annotate, error, error, fatalError, fatalError, getCharset, hyperlink
-
-
-
-
Method Detail
-
getLogger
public PrintStream getLogger()
Description copied from interface:TaskListener
This writer will receive the output of the build- Specified by:
getLogger
in interfaceTaskListener
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
-