Time displayed in Logcat Time displayed in Logcat android android

Time displayed in Logcat


From the docs of logcat you can see that there is an option to specify how the output is formatted (-v).

To get a timestamp, you can use the command

logcat -v time

This will prefix each message with a timestamp.


use adb logcat -v threadtime in terminal to take the logs from device, it will include date and time.

if you want to redirect these logs into a text file then use command in terminal.

 adb logcat -v threadtime > folder_path_in_the_computer/filename.txt


If you are running your app on Android device then it will print device's time, if on emulator then it will show computer's time.

To be ensure just match the Log's time with device's time and with computer's time you will find your answer..