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
TaskListenerwhich 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 voidclose()PrintStreamgetLogger()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:TaskListenerThis writer will receive the output of the build- Specified by:
getLoggerin interfaceTaskListener
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-