public class JavaLogger extends Object implements Log
| Modifier and Type | Method and Description |
|---|---|
void |
debug(String tag,
String msg)
Send a DEBUG log message.
|
void |
debug(String tag,
String msg,
Throwable tr)
Send a DEBUG log message and log the exception.
|
void |
error(String tag,
String msg)
Send an ERROR log message.
|
void |
error(String tag,
String msg,
Throwable tr)
Send an ERROR log message and log the exception.
|
static JavaLogger |
getLogger(String name)
JavaLogger class factory
|
void |
info(String tag,
String msg)
Send an INFO log message.
|
void |
info(String tag,
String msg,
Throwable tr)
Send a INFO log message and log the exception.
|
boolean |
isLoggable(String tag,
Level level)
Checks to see whether or not a log for the specified tag is loggable at the specified level.
|
void |
setLevel(Level level)
Set logging level.
|
void |
verbose(String tag,
String msg)
Send a VERBOSE log message.
|
void |
verbose(String tag,
String msg,
Throwable tr)
Send a VERBOSE log message and log the exception.
|
void |
warn(String tag,
String msg)
Send a WARN log message.
|
void |
warn(String tag,
String msg,
Throwable tr)
Send a #WARN log message and log the exception.
|
public static JavaLogger getLogger(String name)
name - Tag Used to identify the source of a log messagepublic void verbose(String tag, String msg, Throwable tr)
public void debug(String tag, String msg, Throwable tr)
public void info(String tag, String msg, Throwable tr)
public void warn(String tag, String msg, Throwable tr)
public void error(String tag, String msg, Throwable tr)
public boolean isLoggable(String tag, Level level)
isLoggable in interface Logtag - The tag to check.level - The level to check.This documentation is licensed by Andrew Bowley under the GPLv3 License.