Skip to content

Using logcat #130

@elekven-m

Description

@elekven-m

What can we do for you?

Using Net 10 and AdvancedSharpAdbClient 3.5.15. Attempting to read log stream like "adb shell logcat". When I have code use AdbClient to run "shell logcat", it behaves as expected with a continuing output stream of log messages. When I use RunLogServiceAsync, it executes its message action callback a couple thousand times then the stream exits. If I restart the RunLogServiceAsync, I get the same behavior again with exactly the same messages duplicated. How is this function supposed to be called to generate a continuous steam of LogEntry message callbacks? This is how I am using the service now:

await Adb.Client.RunLogServiceAsync(deviceData, LogMsgAction, ctok, [LogId.Default]);
log.Trace($"Android log stream ended");

private void LogMsgAction(LogEntry entry)
{
    log.Trace($"Android log stream received entry: {entry}");
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions