public class LogOutputStream extends LineOrientedOutputStream
Constructor and Description |
---|
LogOutputStream(ProjectComponent pc)
Create a new LogOutputStream for the specified ProjectComponent.
|
LogOutputStream(ProjectComponent pc,
int level)
Creates a new instance of this class.
|
LogOutputStream(Task task,
int level)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
int |
getMessageLevel()
Get the level.
|
protected void |
processBuffer()
Converts the buffer to a string and sends it to
processLine |
protected void |
processLine(java.lang.String line)
Logs a line to the log system of ant.
|
protected void |
processLine(java.lang.String line,
int level)
Logs a line to the log system of ant.
|
close, flush, processLine, write, write
public LogOutputStream(ProjectComponent pc)
pc
- the project component for whom to logpublic LogOutputStream(Task task, int level)
task
- the task for whom to loglevel
- loglevel used to log data written to this stream.public LogOutputStream(ProjectComponent pc, int level)
pc
- the project component for whom to loglevel
- loglevel used to log data written to this stream.protected void processBuffer()
processLine
processBuffer
in class LineOrientedOutputStream
protected void processLine(java.lang.String line)
processLine
in class LineOrientedOutputStream
line
- the line to log.protected void processLine(java.lang.String line, int level)
line
- the line to log.level
- the logging level to use.public int getMessageLevel()