org.apache.tools.ant
Interface BuildLogger

public interface BuildLogger
extends BuildListener
Interface used by Ant to log the build output. A build logger is a build listener which has the 'right' to send output to the ant log, which is usually System.out unless redirected by the -logfile option.
SinceNot specified.
VersionNot specified.
AuthorNot specified.
Wiki javadoc Use textile entry format.
Add your comments here.
Method Summary
void setEmacsMode( boolean emacsMode )
Sets this logger to produce emacs (and other editor) friendly output.
void setErrorPrintStream( 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( PrintStream output )
Sets the output stream to which this logger is to send its output.
setEmacsMode
public void setEmacsMode ( boolean emacsMode )
Sets this logger to produce emacs (and other editor) friendly output.
Parameters
TypeNameDescription
boolean emacsMode true if output is to be unadorned so that emacs and other editors can parse files names, etc.
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
setErrorPrintStream
public void setErrorPrintStream ( PrintStream err )
Sets the output stream to which this logger is to send error messages.
Parameters
TypeNameDescription
PrintStream err The error stream for the logger. Must not be null.
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
setMessageOutputLevel
public void setMessageOutputLevel ( int level )
Sets the highest level of message this logger should respond to. Only messages with a message level lower than or equal to the given level should be written to the log.

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.

Parameters
TypeNameDescription
int level the logging level for the logger.
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.
setOutputPrintStream
public void setOutputPrintStream ( PrintStream output )
Sets the output stream to which this logger is to send its output.
Parameters
TypeNameDescription
PrintStream output The output stream for the logger. Must not be null.
Returns void No description provided.
Wiki javadoc Use textile entry format.
Add your comments here.