티스토리 뷰
SimpleLog
You can use easily Log.
Demo
Example
public class DemoActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if(BuildConfig.DEBUG){
Logging.isRunning = true;
}else{
Logging.isRunning = false;
}
/**
* print form :
* class name : method name, line
*/
Logging.i();
/**
* print form :
* class name : method name, line, comment
*/
Logging.i("comment");
/**
* print form :
* TAG : class name , method name, line, comment
*/
Logging.i("TAG","comment");
/**
* print form :
* class name : [object name], variable name, value
*/
Logging.i(Object object);
/**
* print form :
* TAG : [object name], variable name, value
*/
Logging.i(TAG,Object object);
/**
* print form :
* class name : [object name], variable name, value
*/
Logging.i(Object object,"comment");
/**
* print form :
* class name
* comment
* TAG : [object name], variable name, value
*/
Logging.i(TAG,Object object,"comment");
/**
* print form :
* class name : [object name] [index], variable name, value
*/
Logging.i(ArrayList<?> arrayList);
/**
* print form :
* TAG : [object name] [index], variable name, value
*/
Logging.i(TAG,ArrayList<?> arrayList);
/**
* print form :
* class name
* comment
* class name : [object name] [index], variable name, value
*/
Logging.i(ArrayList<?> arrayList,"comment");
/**
* print form :
* class name
* comment
* TAG : [object name] [index], variable name, value
*/
Logging.i(TAG,ArrayList<?> arrayList,"comment");
/**
* print form :
* class name
* class name : [object name] [index], variable name, value
*/
Logging.i(ArrayList<?> arrayList, int index);
/**
* print form :
* class name, index
* TAG : [object name] [index], variable name, value
*/
Logging.i(TAG,ArrayList<?> arrayList, int index);
/**
* print form :
* class name, index
* comment
* class name : [object name] [index], variable name, value
*/
Logging.i(ArrayList<?> arrayList, int index,"comment");
/**
* print form :
* class name, index
* comment
* TAG : [object name] [index], variable name, value
*/
Logging.i(TAG,ArrayList<?> arrayList, int index,"comment");
/**
* print form :
* class name, start index, end index
* class name : [object name] [index], variable name, value
*/
Logging.i(ArrayList<?> arrayList, int startIndex, int endIndex);
/**
* Print Form :
* class name, start index, end index
* TAG : [object name] [index], variable name, value
*/
Logging.i(TAG,ArrayList<?> arrayList, int startIndex, int endIndex);
/**
* print form :
* class name, start index, end index
* comment
* class name : [object name] [index], variable name, value
*/
Logging.i(ArrayList<?> arrayList, int startIndex, int endIndex,"comment");
/**
* print form :
* class name, start index, end index
* comment
* TAG : [object name] [index], variable name, value
*/
Logging.i(Tag,ArrayList<?> arrayList, int startIndex, int endIndex,"comment");
Logging.e();
...
Logging.w();
...
Logging.d();
...
/**
* print form :
* class name : method name, line
* json
*/
Logging.json(Object object, LogSeparator logSeparator);
/**
* If you want to get a string log message
* uses Same Logging.(i, e, w, d) parameter
* @return String log messages.
*/
Logging.getMessage( ... );
/**
* If you want to get a string lson Log message
* @return String json log messages.
*/
Logging.getJsonMessage(Object object);
}
}
public class DemoActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if(BuildConfig.DEBUG){
Logging.isRunning = true;
}else{
Logging.isRunning = false;
}
/**
* print form :
* class name : method name, line
*/
Logging.i();
/**
* print form :
* class name : method name, line, comment
*/
Logging.i("comment");
/**
* print form :
* TAG : class name , method name, line, comment
*/
Logging.i("TAG","comment");
/**
* print form :
* class name : [object name], variable name, value
*/
Logging.i(Object object);
/**
* print form :
* TAG : [object name], variable name, value
*/
Logging.i(TAG,Object object);
/**
* print form :
* class name : [object name], variable name, value
*/
Logging.i(Object object,"comment");
/**
* print form :
* class name
* comment
* TAG : [object name], variable name, value
*/
Logging.i(TAG,Object object,"comment");
/**
* print form :
* class name : [object name] [index], variable name, value
*/
Logging.i(ArrayList<?> arrayList);
/**
* print form :
* TAG : [object name] [index], variable name, value
*/
Logging.i(TAG,ArrayList<?> arrayList);
/**
* print form :
* class name
* comment
* class name : [object name] [index], variable name, value
*/
Logging.i(ArrayList<?> arrayList,"comment");
/**
* print form :
* class name
* comment
* TAG : [object name] [index], variable name, value
*/
Logging.i(TAG,ArrayList<?> arrayList,"comment");
/**
* print form :
* class name
* class name : [object name] [index], variable name, value
*/
Logging.i(ArrayList<?> arrayList, int index);
/**
* print form :
* class name, index
* TAG : [object name] [index], variable name, value
*/
Logging.i(TAG,ArrayList<?> arrayList, int index);
/**
* print form :
* class name, index
* comment
* class name : [object name] [index], variable name, value
*/
Logging.i(ArrayList<?> arrayList, int index,"comment");
/**
* print form :
* class name, index
* comment
* TAG : [object name] [index], variable name, value
*/
Logging.i(TAG,ArrayList<?> arrayList, int index,"comment");
/**
* print form :
* class name, start index, end index
* class name : [object name] [index], variable name, value
*/
Logging.i(ArrayList<?> arrayList, int startIndex, int endIndex);
/**
* Print Form :
* class name, start index, end index
* TAG : [object name] [index], variable name, value
*/
Logging.i(TAG,ArrayList<?> arrayList, int startIndex, int endIndex);
/**
* print form :
* class name, start index, end index
* comment
* class name : [object name] [index], variable name, value
*/
Logging.i(ArrayList<?> arrayList, int startIndex, int endIndex,"comment");
/**
* print form :
* class name, start index, end index
* comment
* TAG : [object name] [index], variable name, value
*/
Logging.i(Tag,ArrayList<?> arrayList, int startIndex, int endIndex,"comment");
Logging.e();
...
Logging.w();
...
Logging.d();
...
/**
* print form :
* class name : method name, line
* json
*/
Logging.json(Object object, LogSeparator logSeparator);
/**
* If you want to get a string log message
* uses Same Logging.(i, e, w, d) parameter
* @return String log messages.
*/
Logging.getMessage( ... );
/**
* If you want to get a string lson Log message
* @return String json log messages.
*/
Logging.getJsonMessage(Object object);
}
}
Download
Maven:
<dependency>
<groupId>com.parkwoocheol</groupId>
<artifactId>simplelog-android</artifactId>
<version>2.3.1</version>
<type>pom</type>
</dependency>
Gradle:
compile 'com.parkwoocheol:simplelog-android:2.3.1'
Developed By
- Park, Woocheol - mrparkwc@gmail.com
License
Copyright (C) 2015 Park, Woocheol
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Copyright (C) 2015 Park, Woocheol
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
'Programming Story > Android' 카테고리의 다른 글
유용한 안드로이드 라이브러리 simple-shared-preferences (0) | 2018.05.13 |
---|
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 안드로이드 라이브러리
- 오뎅탕 맛집
- Android
- 맛집
- 한우
- Tistory 초대장
- 부경대 맛집
- 노는바다
- Surface Precision Mouse
- 초대장
- 티스토리
- Java
- 오뎅나베 맛집
- 레오폴드
- 부산맛집
- Tistory
- 페이스북 맛집
- 소설담
- 야키토리 맛집
- 인스타 맛집
- 페북 맛집
- 남천동 맛집
- 제주도가볼만한곳
- 티스토리 초대장
- 야키토리 전문점
- 로그 라이브러리
- 부산
- 제주도여행
- 부산 맛집
- 경성대 꽃집
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
글 보관함