Programming/android
Android Logcat
구차니
2020. 6. 9. 17:23
기본으로 될 줄 알았는데, 자바를 너무 만능으로 생각한걸까..
아무튼 logcat 이라는 기능이 android.util.Log 패키지로 존재하기 때문에 사용하려면 import 해주어야 한다.
import android.util.Log; |
사용 방법은 다음과 같이
Error / Warning / Information / Debug / Verbose 의 약자로 붙이면 된다.
Log.e(String, String) (오류) Log.w(String, String) (경고) Log.i(String, String) (정보) Log.d(String, String) (디버그) Log.v(String, String) (상세) |
[링크 : https://developer.android.com/studio/debug/am-logcat?hl=ko]