@Deprecated public interface Logger
Interface for console loggers.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
Logger.Level
Deprecated.
Defines an annotation for available log levels.
|
| Modifier and Type | Method and Description |
|---|---|
void |
d(String tag,
String msg)
Deprecated.
Delegates to
Log.d(String, String) if Log.DEBUG level is loggable at the time. |
void |
d(String tag,
String msg,
Throwable tr)
Deprecated.
Delegates to
Log.d(String, String, Throwable) if Log.DEBUG level is loggable
at the time. |
void |
e(String tag,
String msg)
Deprecated.
Delegates to
Log.e(String, String) if Log.ERROR level is loggable at the time. |
void |
e(String tag,
String msg,
Throwable tr)
Deprecated.
Delegates to
Log.e(String, String, Throwable) if Log.ERROR level is loggable
at the time. |
void |
forceLog(int level,
String tag,
String msg)
Deprecated.
Delegates to
Log.println(int, String, String) with the specified parameters. |
int |
getLogLevel()
Deprecated.
Returns the logging level specified for this logger.
|
String |
getStackTraceString(Throwable tr)
Deprecated.
Delegates to
Log.getStackTraceString(Throwable). |
void |
i(String tag,
String msg)
Deprecated.
Delegates to
Log.i(String, String) if Log.INFO level is loggable at the time. |
void |
i(String tag,
String msg,
Throwable tr)
Deprecated.
Delegates to
Log.i(String, String, Throwable) if Log.INFO level is loggable
at the time. |
boolean |
isLoggable(String tag,
int level)
Deprecated.
Checks whether a log output for the specified level may be logged or not.
|
void |
log(int level,
String tag,
String msg)
Deprecated.
Delegates to
forceLog(int, String, String) if the specified level is
loggable at the time. |
void |
setLogLevel(int level)
Deprecated.
Sets a logging level for this logger.
|
void |
v(String tag,
String msg)
Deprecated.
Delegates to
Log.v(String, String) if Log.VERBOSE level is loggable at the time. |
void |
v(String tag,
String msg,
Throwable tr)
Deprecated.
Delegates to
Log.v(String, String, Throwable) if Log.VERBOSE level is loggable
at the time. |
void |
w(String tag,
String msg)
Deprecated.
Delegates to
Log.w(String, String) if Log.WARN level is loggable at the time. |
void |
w(String tag,
String msg,
Throwable tr)
Deprecated.
Delegates to
Log.w(String, String, Throwable) if Log.WARN level is loggable
at the time. |
void |
w(String tag,
Throwable tr)
Deprecated.
Delegates to
Log.w(String, Throwable) if Log.WARN level is loggable at the time. |
void |
wtf(String tag,
String msg)
Deprecated.
Delegates to
Log.wtf(String, String). |
void |
wtf(String tag,
String msg,
Throwable tr)
Deprecated.
Delegates to
Log.wtf(String, String, Throwable). |
void |
wtf(String tag,
Throwable tr)
Deprecated.
Delegates to
Log.wtf(String, Throwable). |
void setLogLevel(int level)
level - The desired log level. Should be one of log levels defined in Log class.getLogLevel(),
isLoggable(String, int)int getLogLevel()
setLogLevel(int),
isLoggable(String, int)boolean isLoggable(String tag, int level)
True if the specified level is loggable, false otherwise.void d(String tag, String msg)
Log.d(String, String) if Log.DEBUG level is loggable at the time.void d(String tag, String msg, Throwable tr)
Log.d(String, String, Throwable) if Log.DEBUG level is loggable
at the time.void v(String tag, String msg)
Log.v(String, String) if Log.VERBOSE level is loggable at the time.void v(String tag, String msg, Throwable tr)
Log.v(String, String, Throwable) if Log.VERBOSE level is loggable
at the time.void i(String tag, String msg)
Log.i(String, String) if Log.INFO level is loggable at the time.void i(String tag, String msg, Throwable tr)
Log.i(String, String, Throwable) if Log.INFO level is loggable
at the time.void w(String tag, String msg)
Log.w(String, String) if Log.WARN level is loggable at the time.void w(String tag, Throwable tr)
Log.w(String, Throwable) if Log.WARN level is loggable at the time.void w(String tag, String msg, Throwable tr)
Log.w(String, String, Throwable) if Log.WARN level is loggable
at the time.void e(String tag, String msg)
Log.e(String, String) if Log.ERROR level is loggable at the time.void e(String tag, String msg, Throwable tr)
Log.e(String, String, Throwable) if Log.ERROR level is loggable
at the time.void wtf(String tag, String msg, Throwable tr)
Log.wtf(String, String, Throwable).void log(int level,
String tag,
String msg)
forceLog(int, String, String) if the specified level is
loggable at the time.void forceLog(int level,
String tag,
String msg)
Log.println(int, String, String) with the specified parameters.