public static interface LogCatcher.OnLogLinesListener
Modifier and Type | Method and Description |
---|---|
void |
onError(java.lang.Throwable t)
Error encountered
|
void |
onFinished()
Capture finished.
|
void |
onLogLine(java.lang.String logLine)
A new line was read from the log
|
void |
onStart()
Capture started (vie either
LogCatcher.dump(OnLogLinesListener) or LogCatcher.startCapture(OnLogLinesListener) ). |
void onLogLine(java.lang.String logLine)
logLine
- log linevoid onStart()
LogCatcher.dump(OnLogLinesListener)
or LogCatcher.startCapture(OnLogLinesListener)
). This method indicates that the logcat
process was successfully executed and the LogCatcher
instance is now reading from the log stream.void onFinished()
LogCatcher.dump(OnLogLinesListener)
, this method indicates that the end of stream was reached.LogCatcher.startCapture(OnLogLinesListener)
, this method indicates that LogCatcher.endCapture()
was called.void onError(java.lang.Throwable t)
t
- caught error either during the execution of the logcat
command or while trying to read from the log stream.