public interface BuildLogger extends BuildListener
System.out
unless redirected by
the -logfile
option.Modifier and Type | Method and Description |
---|---|
void |
setEmacsMode(boolean emacsMode)
Sets this logger to produce emacs (and other editor) friendly output.
|
void |
setErrorPrintStream(java.io.PrintStream err)
Sets the output stream to which this logger is to send error messages.
|
void |
setMessageOutputLevel(int level)
Sets the highest level of message this logger should respond to.
|
void |
setOutputPrintStream(java.io.PrintStream output)
Sets the output stream to which this logger is to send its output.
|
buildFinished, buildStarted, messageLogged, targetFinished, targetStarted, taskFinished, taskStarted
void setMessageOutputLevel(int level)
Constants for the message levels are in the
Project
class. The order of the levels, from least
to most verbose, is MSG_ERR
, MSG_WARN
,
MSG_INFO
, MSG_VERBOSE
,
MSG_DEBUG
.
level
- the logging level for the logger.void setOutputPrintStream(java.io.PrintStream output)
output
- The output stream for the logger.
Must not be null
.void setEmacsMode(boolean emacsMode)
emacsMode
- true
if output is to be unadorned so that
emacs and other editors can parse files names, etc.void setErrorPrintStream(java.io.PrintStream err)
err
- The error stream for the logger.
Must not be null
.