public class Logger extends Object
the android log
The default behaviour is that it won't log until setEnabled(boolean)
is called with
true as the argument.
Modifier and Type | Method and Description |
---|---|
static void |
d(String tag,
String message)
Logs with a
Log.DEBUG level. |
static void |
d(String tag,
String message,
Throwable throwable)
Logs with a
Log.DEBUG level. |
static void |
e(String tag,
String message)
Logs with a
Log.ERROR level. |
static void |
e(String tag,
String message,
Throwable throwable)
Logs with a
Log.ERROR level. |
static void |
i(String tag,
String message)
Logs with a
Log.INFO level. |
static void |
i(String tag,
String message,
Throwable throwable)
Logs with a
Log.INFO level. |
static void |
v(String tag,
String message)
Logs with a
Log.VERBOSE level. |
static void |
v(String tag,
String message,
Throwable throwable)
Logs with a
Log.VERBOSE level. |
static void |
w(String tag,
String message)
Logs with a
Log.WARN level. |
static void |
w(String tag,
String message,
Throwable throwable)
Logs with a
Log.WARN level. |
public static void w(String tag, String message)
Log.WARN
level.tag
- The log tag to log withmessage
- A message to print to the Logger.public static void w(String tag, String message, Throwable throwable)
Log.WARN
level.tag
- The log tag to log withmessage
- A message to print to the Logger.throwable
- A throwable representing an exception that occurred that will be written
to the Logger.public static void e(String tag, String message)
Log.ERROR
level.tag
- The log tag to log withmessage
- A message to print to the Logger.public static void e(String tag, String message, Throwable throwable)
Log.ERROR
level.tag
- The log tag to log withmessage
- A message to print to the Logger.throwable
- A throwable representing an exception that occurred that will be written
to the Logger.public static void v(String tag, String message)
Log.VERBOSE
level.tag
- The log tag to log withmessage
- A message to print to the Logger.public static void v(String tag, String message, Throwable throwable)
Log.VERBOSE
level.tag
- The log tag to log withmessage
- A message to print to the Logger.throwable
- A throwable representing an exception that occurred that will be written
to the Logger.public static void i(String tag, String message)
Log.INFO
level.tag
- The log tag to log withmessage
- A message to print to the Logger.public static void i(String tag, String message, Throwable throwable)
Log.INFO
level.tag
- The log tag to log withmessage
- A message to print to the Logger.throwable
- A throwable representing an exception that occurred that will be written
to the Logger.public static void d(String tag, String message)
Log.DEBUG
level.tag
- The log tag to log withmessage
- A message to print to the Logger.