public class
DefaultLogger
extends Object
implements Logger
implements Logger
Default logger that logs to android.util.Log.
Public Constructor Summary
DefaultLogger(int logLevel)
|
|
Public Method Summary
void |
d(String tag, String text, Throwable throwable)
|
void |
d(String tag, String text)
|
void |
e(String tag, String text)
|
void |
e(String tag, String text, Throwable throwable)
|
int | |
void |
i(String tag, String text, Throwable throwable)
|
void |
i(String tag, String text)
|
boolean |
isLoggable(String tag, int level)
|
void |
log(int priority, String tag, String msg, boolean forceLog)
|
void |
log(int priority, String tag, String msg)
|
void |
setLogLevel(int logLevel)
|
void |
v(String tag, String text)
|
void |
v(String tag, String text, Throwable throwable)
|
void |
w(String tag, String text, Throwable throwable)
|
void |
w(String tag, String text)
|
Inherited Method Summary
Public Constructors
public DefaultLogger (int logLevel)
Parameters
logLevel |
public DefaultLogger ()
Public Methods
public void d (String tag, String text, Throwable throwable)
Parameters
tag | |
text | |
throwable |
public void d (String tag, String text)
Parameters
tag | |
text |
public void e (String tag, String text)
Parameters
tag | |
text |
public void e (String tag, String text, Throwable throwable)
Parameters
tag | |
text | |
throwable |
public int getLogLevel ()
public void i (String tag, String text, Throwable throwable)
Parameters
tag | |
text | |
throwable |
public void i (String tag, String text)
Parameters
tag | |
text |
public boolean isLoggable (String tag, int level)
Parameters
tag | |
level |
public void log (int priority, String tag, String msg, boolean forceLog)
Parameters
priority | |
tag | |
msg | |
forceLog |
public void log (int priority, String tag, String msg)
Parameters
priority | |
tag | |
msg |
public void setLogLevel (int logLevel)
Parameters
logLevel |
public void v (String tag, String text)
Parameters
tag | |
text |
public void v (String tag, String text, Throwable throwable)
Parameters
tag | |
text | |
throwable |
public void w (String tag, String text, Throwable throwable)
Parameters
tag | |
text | |
throwable |
public void w (String tag, String text)
Parameters
tag | |
text |