|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.logging.impl.AndroidLog
public class AndroidLog
Implementation of org.apache.commons.logging.Log
interface which
delegates all processing to android.util.Log
instance.
The logging levels specified for Commons Logging can be almost directly mapped to the levels that exist in the Google Android platform. The following table shows the mapping implemented by this logger.
JCL | Android |
---|---|
TRACE | VERBOSE |
DEBUG | DEBUG |
INFO | INFO |
WARN | WARN |
ERROR | ERROR |
FATAL | ERROR |
Field Summary | |
---|---|
protected java.lang.String |
name
|
Constructor Summary | |
---|---|
AndroidLog()
|
|
AndroidLog(java.lang.String name)
|
Method Summary | |
---|---|
void |
debug(java.lang.Object message)
Converts the input parameter to String and then delegates to the d method of android.util.Log . |
void |
debug(java.lang.Object message,
java.lang.Throwable t)
Converts the first input parameter to String and then delegates to the d method of android.util.Log . |
void |
error(java.lang.Object message)
Converts the input parameter to String and then delegates to the e method of android.util.Log . |
void |
error(java.lang.Object message,
java.lang.Throwable t)
Converts the first input parameter to String and then delegates to the e method of android.util.Log . |
void |
fatal(java.lang.Object message)
Converts the input parameter to String and then delegates to the e method of android.util.Log . |
void |
fatal(java.lang.Object message,
java.lang.Throwable t)
Converts the first input parameter to String and then delegates to the e method of android.util.Log . |
void |
info(java.lang.Object message)
Converts the input parameter to String and then delegates to the i method of android.util.Log . |
void |
info(java.lang.Object message,
java.lang.Throwable t)
Converts the first input parameter to String and then delegates to the i method of android.util.Log . |
boolean |
isDebugEnabled()
Delegates to the isLoggable |
boolean |
isErrorEnabled()
Delegates to the isLoggable |
boolean |
isFatalEnabled()
Delegates to the isLoggable |
boolean |
isInfoEnabled()
Delegates to the isLoggable |
boolean |
isTraceEnabled()
Delegates to the isLoggable |
boolean |
isWarnEnabled()
Delegates to the isLoggable |
void |
trace(java.lang.Object message)
Converts the input parameter to String and then delegates to the v method of android.util.Log . |
void |
trace(java.lang.Object message,
java.lang.Throwable t)
Converts the first input parameter to String and then delegates to the v method of android.util.Log . |
void |
warn(java.lang.Object message)
Converts the input parameter to String and then delegates to the w method of android.util.Log . |
void |
warn(java.lang.Object message,
java.lang.Throwable t)
Converts the first input parameter to String and then delegates to the w method of android.util.Log . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String name
Constructor Detail |
---|
public AndroidLog()
public AndroidLog(java.lang.String name)
Method Detail |
---|
public boolean isTraceEnabled()
isLoggable method of the
android.util.Log
.
- Specified by:
isTraceEnabled
in interface Log
public void trace(java.lang.Object message)
v
method of android.util.Log
.
trace
in interface Log
message
- the message to log. Converted to String
public void trace(java.lang.Object message, java.lang.Throwable t)
v
method of android.util.Log
.
trace
in interface Log
message
- the message to log. Converted to String
t
- the exception to logpublic boolean isDebugEnabled()
isLoggable method of
android.util.Log
.
- Specified by:
isDebugEnabled
in interface Log
public void debug(java.lang.Object message)
d
method of android.util.Log
.
debug
in interface Log
message
- the message to log. Converted to String
public void debug(java.lang.Object message, java.lang.Throwable t)
d
method of android.util.Log
.
debug
in interface Log
message
- the message to log. Converted to String
t
- the exception to logpublic boolean isInfoEnabled()
isLoggable method of the
android.util.Log
.
- Specified by:
isInfoEnabled
in interface Log
public void info(java.lang.Object message)
i
method of android.util.Log
.
info
in interface Log
message
- the message to log. Converted to String
public void info(java.lang.Object message, java.lang.Throwable t)
i
method of android.util.Log
.
info
in interface Log
message
- the message to log. Converted to String
t
- the exception to logpublic boolean isWarnEnabled()
isLoggable method of the
android.util.Log
.
- Specified by:
isWarnEnabled
in interface Log
public void warn(java.lang.Object message)
w
method of android.util.Log
.
warn
in interface Log
message
- the message to log. Converted to String
public void warn(java.lang.Object message, java.lang.Throwable t)
w
method of android.util.Log
.
warn
in interface Log
message
- the message to log. Converted to String
t
- the exception to logpublic boolean isErrorEnabled()
isLoggable method of
android.util.Log
.
- Specified by:
isErrorEnabled
in interface Log
public void error(java.lang.Object message)
e
method of android.util.Log
.
error
in interface Log
message
- the message to log. Converted to String
public void error(java.lang.Object message, java.lang.Throwable t)
e
method of android.util.Log
.
error
in interface Log
message
- the message to log. Converted to String
t
- the exception to logpublic boolean isFatalEnabled()
isLoggable method of
android.util.Log
.
- Specified by:
isFatalEnabled
in interface Log
public void fatal(java.lang.Object message)
e
method of android.util.Log
.
fatal
in interface Log
message
- the message to log. Converted to String
public void fatal(java.lang.Object message, java.lang.Throwable t)
e
method of android.util.Log
.
fatal
in interface Log
message
- the message to log. Converted to String
t
- the exception to log
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |