public static final class LogContract.Log.Level
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
APPLICATION
Log entries level for applications.
|
static int |
DEBUG
Level used just for debugging purposes.
|
static int |
ERROR
Log entries with very high importance, like errors.
|
static int |
INFO
Default logging level for important entries.
|
static int |
VERBOSE
Log entries with minor importance.
|
static int |
WARNING
Log entries with high importance.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
fromPriority(int priority)
The Log
LogContract.Log.Level and Log are not compatible. |
public static final int DEBUG
public static final int VERBOSE
public static final int INFO
public static final int APPLICATION
public static final int WARNING
public static final int ERROR
public static int fromPriority(int priority)
LogContract.Log.Level and Log are not compatible.
Level has additional APPLICATION level, while Log the
Log.ASSERT. Also, the Log.WARN has
the same value as INFO. Therefore, a translation needs to be done to
log a message using Log priorities.priority - the Log priority.LogContract.Log.Level matching given priority.