Logs play an important part in diagnostics in Fuchsia as they describe human
readable events that have happened on a system.

When working with the IDK, you can publish logs with the `syslog` API which is
available for C++ in `//pkg/syslog_cpp`.

When you work with the IDK, one of the main tools for working with logs is
[`ffx log`](https://fuchsia.dev/reference/tools/sdk/ffx#ffx_log) to retrieve logs from a Fuchsia device.

To learn more about logging on Fuchsia, see [Logging on Fuchsia](https://fuchsia.dev/docs/concepts/components/diagnostics/README).
[](https://issues.fuchsia.dev/issues/new?component=1439230&template=1881640&description=Issue+on:+https://fuchsia.dev/docs/development/idk/documentation/logging.md "Report a bug or suggest improvements on this page") [](https://cs.opensource.google/fuchsia/fuchsia/+/main:docs/development/idk/documentation/logging.md "View the source code of this page") [](https://ci.android.com/edit?repo=fuchsia/fuchsia/main&file=docs/development/idk/documentation/logging.md&cloneRepo=fuchsia/fuchsia:refs/heads/main&fullPath=fuchsia/docs/development/idk/documentation/logging.md "Edit the source code of this page")