|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.cafebabe.sat.ant.ConsoleLogger
Writes build events to a PrintStream.
Constructor Summary | |
ConsoleLogger()
Empty constructor. |
|
ConsoleLogger(java.io.PrintStream out,
java.io.PrintStream err,
int level)
Constructor with streams and logging level. |
Method Summary | |
void |
buildFinished(org.apache.tools.ant.BuildEvent event)
|
void |
buildStarted(org.apache.tools.ant.BuildEvent event)
|
void |
messageLogged(org.apache.tools.ant.BuildEvent event)
Logs a message, if the priority is suitable. |
void |
setEmacsMode(boolean emacsMode)
|
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. |
void |
targetFinished(org.apache.tools.ant.BuildEvent event)
|
void |
targetStarted(org.apache.tools.ant.BuildEvent event)
Logs a message to say that the target has started if this logger allows information-level messages. |
void |
taskFinished(org.apache.tools.ant.BuildEvent event)
|
void |
taskStarted(org.apache.tools.ant.BuildEvent event)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConsoleLogger()
public ConsoleLogger(java.io.PrintStream out, java.io.PrintStream err, int level)
out
- The standard output stream as a PrintStreamerr
- The error output stream as a PrintStreamlevel
- Ouput message logging level as an intMethod Detail |
public void setMessageOutputLevel(int level)
setMessageOutputLevel
in interface org.apache.tools.ant.BuildLogger
level
- the logging level for the logger.public void setOutputPrintStream(java.io.PrintStream output)
setOutputPrintStream
in interface org.apache.tools.ant.BuildLogger
output
- The output stream for the logger.public void setErrorPrintStream(java.io.PrintStream err)
setErrorPrintStream
in interface org.apache.tools.ant.BuildLogger
err
- The error stream for the logger.public void targetStarted(org.apache.tools.ant.BuildEvent event)
targetStarted
in interface org.apache.tools.ant.BuildListener
event
- An event with any relevant extra information.
Must not be null
.public void messageLogged(org.apache.tools.ant.BuildEvent event)
messageLogged
in interface org.apache.tools.ant.BuildListener
event
- A BuildEvent containing message information.public void setEmacsMode(boolean emacsMode)
setEmacsMode
in interface org.apache.tools.ant.BuildLogger
public void buildStarted(org.apache.tools.ant.BuildEvent event)
buildStarted
in interface org.apache.tools.ant.BuildListener
public void buildFinished(org.apache.tools.ant.BuildEvent event)
buildFinished
in interface org.apache.tools.ant.BuildListener
public void targetFinished(org.apache.tools.ant.BuildEvent event)
targetFinished
in interface org.apache.tools.ant.BuildListener
public void taskStarted(org.apache.tools.ant.BuildEvent event)
taskStarted
in interface org.apache.tools.ant.BuildListener
public void taskFinished(org.apache.tools.ant.BuildEvent event)
taskFinished
in interface org.apache.tools.ant.BuildListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |