FileDocCategorySizeDatePackage
BuildLogger.javaAPI DocApache Ant 1.702606Wed Dec 13 06:16:18 GMT 2006org.apache.tools.ant

BuildLogger

public interface BuildLogger implements 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.

Fields Summary
Constructors Summary
Methods Summary
public voidsetEmacsMode(boolean emacsMode)
Sets this logger to produce emacs (and other editor) friendly output.

param
emacsMode true if output is to be unadorned so that emacs and other editors can parse files names, etc.

public voidsetErrorPrintStream(java.io.PrintStream err)
Sets the output stream to which this logger is to send error messages.

param
err The error stream for the logger. Must not be null.

public voidsetMessageOutputLevel(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 {@link Project Project} class. The order of the levels, from least to most verbose, is MSG_ERR, MSG_WARN, MSG_INFO, MSG_VERBOSE, MSG_DEBUG.

param
level the logging level for the logger.

public voidsetOutputPrintStream(java.io.PrintStream output)
Sets the output stream to which this logger is to send its output.

param
output The output stream for the logger. Must not be null.