public class LogTaskListener extends AbstractTaskListener implements Serializable
TaskListener
which sends messages to a Logger
.NULL
Constructor and Description |
---|
LogTaskListener(Logger logger,
Level level) |
Modifier and Type | Method and Description |
---|---|
void |
annotate(ConsoleNote ann)
Annotates the current position in the output log by using the given annotation.
|
void |
close() |
PrintWriter |
error(String msg)
An error in the build.
|
PrintWriter |
error(String format,
Object... args)
Formatter#format(String, Object[]) version of TaskListener.error(String) . |
PrintWriter |
fatalError(String msg)
A fatal error in the build.
|
PrintWriter |
fatalError(String format,
Object... args)
Formatter#format(String, Object[]) version of TaskListener.fatalError(String) . |
PrintStream |
getLogger()
This writer will receive the output of the build
|
hyperlink
public PrintStream getLogger()
TaskListener
getLogger
in interface TaskListener
public PrintWriter error(String msg)
TaskListener
error
in interface TaskListener
public PrintWriter error(String format, Object... args)
TaskListener
Formatter#format(String, Object[])
version of TaskListener.error(String)
.error
in interface TaskListener
public PrintWriter fatalError(String msg)
TaskListener
fatalError
in interface TaskListener
public PrintWriter fatalError(String format, Object... args)
TaskListener
Formatter#format(String, Object[])
version of TaskListener.fatalError(String)
.fatalError
in interface TaskListener
public void annotate(ConsoleNote ann)
TaskListener
annotate
in interface TaskListener
public void close()
Copyright © 2017. All rights reserved.