public class Logger extends Object
Constructor and Description |
---|
Logger() |
Modifier and Type | Method and Description |
---|---|
static void |
debug(String tag,
String message)
Write DEBUG message to log
|
static void |
debug(String tag,
String message,
Throwable t)
Write DEBUG message to log
|
static void |
error(String tag,
String message)
Write ERROR message to log
|
static void |
error(String tag,
String message,
Throwable t)
Write ERROR message to log
|
static void |
info(String tag,
String message)
Write INFO message to log
|
static void |
info(String tag,
String message,
Throwable t)
Write INFO message to log
|
static void |
setLoggingFacility(LoggingFacility facility)
Set logging facility.
|
static void |
warning(String tag,
String message)
Write WARNING message to log
|
static void |
warning(String tag,
String message,
Throwable t)
Write WARNING message to log
|
static void |
writeLog(int level,
String tag,
String message,
Throwable t)
Write message to log using current logging facility.
|
public static void setLoggingFacility(LoggingFacility facility)
facility
- logging facility or nullpublic static void writeLog(int level, String tag, String message, Throwable t)
level
- severity level (defined in interface LoggingFacility)tag
- message tagmessage
- message textt
- associated throwable, or nullpublic static void debug(String tag, String message, Throwable t)
tag
- message tagmessage
- message textt
- associated throwable, or nullpublic static void debug(String tag, String message)
tag
- message tagmessage
- message textpublic static void info(String tag, String message, Throwable t)
tag
- message tagmessage
- message textt
- associated throwable, or nullpublic static void info(String tag, String message)
tag
- message tagmessage
- message textpublic static void warning(String tag, String message, Throwable t)
tag
- message tagmessage
- message textt
- associated throwable, or nullpublic static void warning(String tag, String message)
tag
- message tagmessage
- message textpublic static void error(String tag, String message, Throwable t)
tag
- message tagmessage
- message textt
- associated throwable, or nullCopyright © 2016. All rights reserved.