public class ASRLog
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
API
Log Level 3
|
static int |
DEBUG
Log Level 2
|
static int |
DUMP
Log Level 9
|
static int |
ERROR
Log Level 0.
|
static int |
INFO
Log Level 1.
|
static int |
IO
Log Level 8
|
static int |
LIB1
Log Level 4
|
static int |
LIB2
Log Level 5
|
static int |
UTIL
Log Level 7
|
static int |
WATCH
Log Level 6
|
Constructor and Description |
---|
ASRLog() |
Modifier and Type | Method and Description |
---|---|
static void |
d(java.lang.String tag,
int level,
java.lang.String msg)
Send a DEBUG log message.
|
static void |
d(java.lang.String tag,
int level,
java.lang.String format,
java.lang.Object... args)
Send a DEBUG log message.
|
static void |
d(java.lang.String tag,
int level,
java.lang.Throwable tr,
java.lang.String format,
java.lang.Object... args)
Send a DEBUG log message.
|
static void |
e(java.lang.String tag,
java.lang.String msg)
Send an ERROR log message.
|
static void |
e(java.lang.String tag,
java.lang.String format,
java.lang.Object... args)
Send an ERROR log message.
|
static void |
e(java.lang.String tag,
java.lang.Throwable tr,
java.lang.String format,
java.lang.Object... args)
Send an ERROR log message.
|
static int |
getLogLevel()
Returns log level that currently sets(Default=ERROR).
|
static void |
i(java.lang.String tag,
int level,
java.lang.String msg)
Send an INFO log message.
|
static void |
i(java.lang.String tag,
int level,
java.lang.String format,
java.lang.Object... args)
Send an INFO log message.
|
static void |
i(java.lang.String tag,
int level,
java.lang.Throwable tr,
java.lang.String format,
java.lang.Object... args)
Send an INFO log message.
|
static void |
setLogLevel(int level)
Sets log level(Default=ERROR).
|
static void |
shutdown()
Stop file logging
|
static void |
startUp(java.lang.String path,
java.lang.String name)
Start file logging
|
static void |
w(java.lang.String tag,
int level,
java.lang.String msg)
Send a WARN log message.
|
static void |
w(java.lang.String tag,
int level,
java.lang.String format,
java.lang.Object... args)
Send a WARN log message.
|
static void |
w(java.lang.String tag,
int level,
java.lang.Throwable tr,
java.lang.String format,
java.lang.Object... args)
Send a WARN log message.
|
public static final int ERROR
public static final int INFO
public static final int DEBUG
public static final int API
public static final int LIB1
public static final int LIB2
public static final int WATCH
public static final int UTIL
public static final int IO
public static final int DUMP
public static void startUp(java.lang.String path, java.lang.String name)
path
- String that specifies the path of log filename
- String that specifies the name of log filepublic static void shutdown()
public static int getLogLevel()
public static void setLogLevel(int level)
level
- Integer specifying the log levelpublic static void d(java.lang.String tag, int level, java.lang.String msg)
tag
- Used to identify the source of a log message.level
- Sets level of this log message.msg
- The message you would like logged.public static void d(java.lang.String tag, int level, java.lang.String format, java.lang.Object... args)
tag
- Used to identify the source of a log message.level
- Sets level of this log message.format
- A format String.args
- Arguments referenced by the format specifiers in the format string.public static void d(java.lang.String tag, int level, java.lang.Throwable tr, java.lang.String format, java.lang.Object... args)
tag
- Used to identify the source of a log message.level
- Sets level of this log message.tr
- An instance of java.lang.Error or java.lang.Exceptionformat
- A format String.args
- Arguments referenced by the format specifiers in the format string.public static void i(java.lang.String tag, int level, java.lang.String msg)
tag
- Used to identify the source of a log message.level
- Sets level of this log message.msg
- The message you would like logged.public static void i(java.lang.String tag, int level, java.lang.String format, java.lang.Object... args)
tag
- Used to identify the source of a log message.level
- Sets level of this log message.format
- A format String.args
- Arguments referenced by the format specifiers in the format string.public static void i(java.lang.String tag, int level, java.lang.Throwable tr, java.lang.String format, java.lang.Object... args)
tag
- Used to identify the source of a log message.level
- Sets level of this log message.tr
- An instance of java.lang.Error or java.lang.Exceptionformat
- A format String.args
- Arguments referenced by the format specifiers in the format string.public static void w(java.lang.String tag, int level, java.lang.String msg)
tag
- Used to identify the source of a log message.level
- Sets level of this log message.msg
- The message you would like logged.public static void w(java.lang.String tag, int level, java.lang.String format, java.lang.Object... args)
tag
- Used to identify the source of a log message.level
- Sets level of this log message.format
- A format String.args
- Arguments referenced by the format specifiers in the format string.public static void w(java.lang.String tag, int level, java.lang.Throwable tr, java.lang.String format, java.lang.Object... args)
tag
- Used to identify the source of a log message.level
- Sets level of this log message.tr
- An instance of java.lang.Error or java.lang.Exceptionformat
- A format String.args
- Arguments referenced by the format specifiers in the format string.public static void e(java.lang.String tag, java.lang.String msg)
tag
- Used to identify the source of a log message.msg
- The message you would like logged.public static void e(java.lang.String tag, java.lang.String format, java.lang.Object... args)
tag
- Used to identify the source of a log message.format
- A format String.args
- Arguments referenced by the format specifiers in the format string.public static void e(java.lang.String tag, java.lang.Throwable tr, java.lang.String format, java.lang.Object... args)
tag
- Used to identify the source of a log message.tr
- An instance of java.lang.Error or java.lang.Exceptionformat
- A format String.args
- Arguments referenced by the format specifiers in the format string.