# Logging on Fuchsia

The Logs from Fuchsia can be viewed interactively through `ffx log`.

> [!NOTE]
> **Note:** If you work on things such as bringup or diagnose issues with the network stack, you may connect to a Fuchsia device through a serial console. In those cases, you can use [`log_listener`](https://fuchsia.dev/docs/reference/diagnostics/consumers/log_listener) to view logs from the device.

As you work with logs from a Fuchsia device, you can use `ffx log` to
retrieve logs from a device:

> [!NOTE]
> **Note:** For more information on using `ffx log`, see [`ffx log`](https://fuchsia.dev/reference/tools/sdk/ffx#ffx_log).

    ffx log

To view specifics logs, you can use the `--filter` option. For example, to see
all logs tagged with `network`:

    ffx log --filter network

You may want to learn more about:

- [Understanding logs on Fuchsia](https://fuchsia.dev/docs/concepts/components/diagnostics/README#logs)
- [Configuring the `ffx log` tool](https://fuchsia.dev/docs/development/tools/ffx/commands/log)
- [Understanding how Fuchsia components can write logs](https://fuchsia.dev/docs/development/diagnostics/logs/recording)
- [Understanding the details of a log](https://fuchsia.dev/docs/development/diagnostics/logs/viewing)

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