Articles → Android → Logcat in android

Logcat in android






What is logcat?





Log class





How to open logcat window?





Click to Enlarge


Format of log messages




<Date> <Time> <process_id>-<thread id>/ <Priority>/<tag>:<message>



















Priority




PriorityMeaningLog function syntax
VVerboseLog.v(tag, message);
DDebugLog.d(tag, message);
IInfoLog.i(tag, message);
WWarningLog.w(tag, message);
EErrorLog.e(tag, message);
AAssertLog.wtf(tag, message);

Example




Log.v("verbose_tag", "This is the verbose tag");
Log.d("debug_tag", "This is the debug tag");
Log.i("info_tag", "This is the info tag");
Log.w("warning_tag", "This is the warning tag");
Log.e("error_tag", "This is the error tag");
Log.wtf("assert_tag", "This is the assert tag");





Click to Enlarge


Important components of logcat window





Click to Enlarge












Posted By  -  Karan Gupta
 
Posted On  -  Friday, November 29, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250