summaryrefslogtreecommitdiffstats
path: root/mobile/android/thirdparty/ch/boye/httpclientandroidlib/androidextra/HttpClientAndroidLog.java
diff options
context:
space:
mode:
Diffstat (limited to 'mobile/android/thirdparty/ch/boye/httpclientandroidlib/androidextra/HttpClientAndroidLog.java')
-rw-r--r--mobile/android/thirdparty/ch/boye/httpclientandroidlib/androidextra/HttpClientAndroidLog.java113
1 files changed, 0 insertions, 113 deletions
diff --git a/mobile/android/thirdparty/ch/boye/httpclientandroidlib/androidextra/HttpClientAndroidLog.java b/mobile/android/thirdparty/ch/boye/httpclientandroidlib/androidextra/HttpClientAndroidLog.java
deleted file mode 100644
index 89758f315..000000000
--- a/mobile/android/thirdparty/ch/boye/httpclientandroidlib/androidextra/HttpClientAndroidLog.java
+++ /dev/null
@@ -1,113 +0,0 @@
-package ch.boye.httpclientandroidlib.androidextra;
-
-import android.util.Log;
-
-public class HttpClientAndroidLog {
-
- private String logTag;
- private boolean debugEnabled;
- private boolean errorEnabled;
- private boolean traceEnabled;
- private boolean warnEnabled;
- private boolean infoEnabled;
-
- public HttpClientAndroidLog(Object tag) {
- logTag=tag.toString();
- debugEnabled=false;
- errorEnabled=false;
- traceEnabled=false;
- warnEnabled=false;
- infoEnabled=false;
- }
-
- public void enableDebug(boolean enable) {
- debugEnabled=enable;
- }
-
- public boolean isDebugEnabled() {
- return debugEnabled;
- }
-
- public void debug(Object message) {
- if(isDebugEnabled())
- Log.d(logTag, message.toString());
- }
-
- public void debug(Object message, Throwable t) {
- if(isDebugEnabled())
- Log.d(logTag, message.toString(), t);
- }
-
- public void enableError(boolean enable) {
- errorEnabled=enable;
- }
-
- public boolean isErrorEnabled() {
- return errorEnabled;
- }
-
- public void error(Object message) {
- if(isErrorEnabled())
- Log.e(logTag, message.toString());
- }
-
- public void error(Object message, Throwable t) {
- if(isErrorEnabled())
- Log.e(logTag, message.toString(), t);
- }
-
- public void enableWarn(boolean enable) {
- warnEnabled=enable;
- }
-
- public boolean isWarnEnabled() {
- return warnEnabled;
- }
-
- public void warn(Object message) {
- if(isWarnEnabled())
- Log.w(logTag, message.toString());
- }
-
- public void warn(Object message, Throwable t) {
- if(isWarnEnabled())
- Log.w(logTag, message.toString(), t);
- }
-
- public void enableInfo(boolean enable) {
- infoEnabled=enable;
- }
-
- public boolean isInfoEnabled() {
- return infoEnabled;
- }
-
- public void info(Object message) {
- if(isInfoEnabled())
- Log.i(logTag, message.toString());
- }
-
- public void info(Object message, Throwable t) {
- if(isInfoEnabled())
- Log.i(logTag, message.toString(), t);
- }
-
- public void enableTrace(boolean enable) {
- traceEnabled=enable;
- }
-
- public boolean isTraceEnabled() {
- return traceEnabled;
- }
-
- public void trace(Object message) {
- if(isTraceEnabled())
- Log.i(logTag, message.toString());
- }
-
- public void trace(Object message, Throwable t) {
- if(isTraceEnabled())
- Log.i(logTag, message.toString(), t);
- }
-
-}