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)
|
PrintWriter |
fatalError(String msg)
A fatal error in the build.
|
PrintWriter |
fatalError(String format,
Object... args)
|
PrintStream |
getLogger()
This writer will receive the output of the build
|
hyperlinkpublic PrintStream getLogger()
TaskListenergetLogger in interface TaskListenerpublic PrintWriter error(String msg)
TaskListenererror in interface TaskListenerpublic PrintWriter error(String format, Object... args)
TaskListenererror in interface TaskListenerpublic PrintWriter fatalError(String msg)
TaskListenerfatalError in interface TaskListenerpublic PrintWriter fatalError(String format, Object... args)
TaskListenerfatalError in interface TaskListenerpublic void annotate(ConsoleNote ann)
TaskListenerannotate in interface TaskListenerpublic void close()
Copyright © 2014. All rights reserved.