Google is committed to advancing racial equity for Black communities. See how.

fx log

listen for logs from the on-device log_listener

usage: fx log [-h | --help] [--raw] [-r | --remote-symbols] LOG_LISTENER_FLAGS

   --raw                   do not attempt to symbolize the log

   --remote-symbols|-r     attemp to resolve symbols using predefined remote
                           symbol servers for symbols that cannot be resolved
                           locally. See `fx help symbolize` for more
                           information on remote symbol servers.

   --help|-h               show this help and attempt to also show the
                           on-device log_listener help

   LOG_LISTENER_FLAGS      bypass flags for the on-device log_listener

Creates an SSH connection with a device and starts listening for logs.
It will listen to the device specified with `fx -d DEVICE log` or
`fx set-device`, otherwise it will try to find a connected device.

For more information on flags supported by on-device log_listener, look at
the source code in https://fuchsia.googlesource.com/fuchsia/+/master/garnet/bin/log_listener/src/main.rs#314

log source code