Forrest logo
back to the adb tool

adb-logcat:tldr:00e24

adb-logcat: Display logs for a tag in a specific mode ([V]erbose, [D]ebug, [I]nfo, [W]arning, [E]rror, [F]atal, [S]ilent), filtering other tags.
$ adb logcat ${tag}:${mode} *:S
try on your machine

This command is used in the Android Debug Bridge (adb) tool to filter and display log messages coming from a specific tag with a particular mode.

  • "adb" is the command-line tool for interacting with Android devices/emulators via the Android Debug Bridge. It allows developers to perform various operations, including debugging, installing and uninstalling apps, accessing device shell, etc.

  • "logcat" is a command within adb that retrieves and displays system log messages generated by applications or system services running on an Android device.

  • "${tag}" is a placeholder representing the tag or process name that you want to filter log messages for. Tags are used to identify different components or processes within an application.

  • "${mode}" is another placeholder indicating the log message priority level you want to display. The available mode options are:

    • V: Verbose (lowest priority, displays all log messages)
    • D: Debug
    • I: Info
    • W: Warning
    • E: Error
    • F: Fatal
    • S: Silent (highest priority, displays no log messages)
  • "*:S" is used to exclude log messages from all other tags that are not specified. It stands for "silent" mode, meaning those log messages will not be displayed.

So, when the command is executed, it will show only log messages from the specified tag and with the specified mode, while silencing log messages from other tags.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the adb tool