The preferred way to publish logs is to use the
syslog API, currently
available for C in
The library provides the ability to tag logs so that they can later be filtered upon retrieval.
In order to get logs from a device, open a shell on the device as described in
this document and run:
To view specifics logs, add a tag specification:
$ log_listener --tag foobar
//tools/symbolize should be used to symbolize stack traces. It should be
pointed to the
.build-id directory at the root of the SDK, where debug symbols
tools/symbolize --build-id-dir .build-id
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2019-09-25.