import android.util.Log;
Using Log.d() (Debug):
Log.d("YourTag", "Your message here");
Using Log.i() (Info):
Log.i("YourTag", "Your message here");
Using Log.e() (Error):
Log.e("YourTag", "Your message here");
Using Log.w() (Warning):
Log.w("YourTag", "Your message here");
Using Log.v() (Verbose):
Log.v("YourTag", "Your message here");
ALT + 6,找到Logcat