org.apache.tools.ant.taskdefs
Class LogOutputStream
public class LogOutputStream
Logs each line written to this stream to the log system of ant.
Tries to be smart about line separators.
int | getMessageLevel()- Get the level.
|
protected void | processBuffer()- Converts the buffer to a string and sends it to
processLine
|
protected void | processLine(String line)- Logs a line to the log system of ant.
|
protected void | processLine(String line, int level)- Logs a line to the log system of ant.
|
LogOutputStream
public LogOutputStream(ProjectComponent pc,
int level) Creates a new instance of this class.
pc - the project component for whom to loglevel - loglevel used to log data written to this stream.
LogOutputStream
public LogOutputStream(Task task,
int level) Creates a new instance of this class.
task - the task for whom to loglevel - loglevel used to log data written to this stream.
getMessageLevel
public int getMessageLevel()
Get the level.
processLine
protected void processLine(String line,
int level) Logs a line to the log system of ant.
line - the line to log.level - the logging level to use.