public class DefaultStreamGobblerCallback extends java.lang.Object implements StreamGobblerCallback
Modifier and Type | Field and Description |
---|---|
private int |
mLevel
The level on which the messages are to be logged.
|
private LogManager |
mLogger
The instance to the logger to log messages.
|
Constructor and Description |
---|
DefaultStreamGobblerCallback(int level)
The overloaded constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
work(java.lang.String line)
Callback whenever a line is read from the stream by the StreamGobbler.
|
private int mLevel
private LogManager mLogger
public DefaultStreamGobblerCallback(int level)
level
- the level on which to log.public void work(java.lang.String line)
work
in interface StreamGobblerCallback
line
- the line that is read.