com.deftlabs.logging.mongo
Enum LogMsg
java.lang.Object
java.lang.Enum<LogMsg>
com.deftlabs.logging.mongo.LogMsg
- All Implemented Interfaces:
- Serializable, Comparable<LogMsg>
public enum LogMsg
- extends Enum<LogMsg>
The log message format.
|
Method Summary |
String |
getField()
|
static LogMsg |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static LogMsg[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
LEVEL
public static final LogMsg LEVEL
MSG
public static final LogMsg MSG
LOGGER
public static final LogMsg LOGGER
MSG_SEQ
public static final LogMsg MSG_SEQ
THREAD
public static final LogMsg THREAD
RES_BUNDLE
public static final LogMsg RES_BUNDLE
TIMESTAMP
public static final LogMsg TIMESTAMP
SRC_CLASS
public static final LogMsg SRC_CLASS
SRC_METHOD
public static final LogMsg SRC_METHOD
THROWN
public static final LogMsg THROWN
NODE_NAME
public static final LogMsg NODE_NAME
APP_PID
public static final LogMsg APP_PID
field
public final String field
values
public static LogMsg[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (LogMsg c : LogMsg.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static LogMsg valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
getField
public String getField()