public class LDLog
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
FORCE_DISABLE_LOG |
static boolean |
FORCE_DISABLE_UNDER_INFO_LOG
Set to
true to disable all logging message which has log level lower that DEBUG. |
static int |
LEVEL_DEBUG
Debug level for any message considered helping in development process.
|
static int |
LEVEL_ERROR
Error level for report the error that might be a root cause that make application stop working or work improperly.
|
static int |
LEVEL_INFO
Info level for user information or what user need to know but do not cause any unusual behavior.
|
static int |
LEVEL_VERBOSE
Verbose level for the lowest priority message.
|
static int |
LEVEL_WARN
Warning level for report an error but this error does not cause application to stop or crash.
|
Constructor and Description |
---|
LDLog()
Use static methods of this class instead of create an object.
|
Modifier and Type | Method and Description |
---|---|
static void |
log(int level,
java.lang.String tag,
java.lang.Object msg)
Log a message with log level and tag.
|
public static final int LEVEL_VERBOSE
public static final int LEVEL_DEBUG
public static final int LEVEL_INFO
public static final int LEVEL_WARN
public static final int LEVEL_ERROR
public static boolean FORCE_DISABLE_UNDER_INFO_LOG
true
to disable all logging message which has log level lower that DEBUG.public static boolean FORCE_DISABLE_LOG