Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To store LogCat data in a file, follow these steps:

  1. Open the command prompt/terminal on your device or computer.
  2. Connect your device to your computer using a USB cable.
  3. Type the following command into the command prompt/terminal:

    adb logcat -v time > log.txt

  4. Press Enter to execute the command.

  5. This command will start saving the LogCat data into a file named "log.txt" in the location where the command prompt/terminal is currently pointing to.
  6. To stop saving the LogCat data to the file, press Ctrl+C on the keyboard.
  7. You can now disconnect your device from the computer and access the LogCat data stored in the "log.txt" file.