Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- hadoop
- xPlatform
- 공정능력
- SSL
- Express
- react
- Android
- mapreduce
- table
- JavaScript
- mybatis
- Spring
- Python
- vaadin
- window
- GIT
- 보조정렬
- Eclipse
- SQL
- NPM
- tomcat
- Kotlin
- plugin
- SPC
- MSSQL
- IntelliJ
- R
- Sqoop
- es6
- Java
Archives
- Today
- Total
DBILITY
logger 설정하기 본문
728x90
반응형
https://github.com/orhanobut/logger
GitHub - orhanobut/logger: ✔️ Simple, pretty and powerful logger for android
✔️ Simple, pretty and powerful logger for android. Contribute to orhanobut/logger development by creating an account on GitHub.
github.com
onCreate에 다음과 같이
Logger.addLogAdapter(new AndroidLogAdapter() {
//Release시 제거되도록
@Override
public boolean isLoggable(int priority, @android.support.annotation.Nullable @Nullable String tag) {
return BuildConfig.DEBUG;
//return Settings.DEBUG;
}
});
Logger.t(TAG).d("Exception: ", e.getMessage());
안드로이드의 기본 로그 자동완성 ( logd+TAB ) 을 변경하면 편하다.
728x90
'android' 카테고리의 다른 글
avd의 화면 크기, 해상도 변경하기 (0) | 2025.04.14 |
---|---|
Gradle user home 설정을 override 하지말고 환경변수에 설정하면 된다 (0) | 2025.03.13 |
compileSdk, targetSdk,targetApi (0) | 2025.03.11 |
android Missing required view with ID (1) | 2024.11.21 |
android WindowInsets Insets (0) | 2024.11.19 |
Comments