Android Studio logcat log to a file
The command syntax for logging logcat logs to a file
adb -d logcat:
Log level options: V, D, I, W, E
An example of the command for logging logcat logs to a file.
adb -d logcat com.example.example:V > /Users/yourname/android/codexpedia/android_log.txt
The command line for specifying the log file can be entered within the Android Studio. At the bottom of the Android Studio, there is a command line terminal icon, click on that and enter the command there.
This command will monitor and output the latest contents of the log file to the command line window.
tail -f /Users/yourname/android/codexpedia/android_log.txt
References:
https://stackoverflow.com/a/28336174/2069407
Search within Codexpedia
Custom Search
Search the entire web
Custom Search
Related Posts