com.deftlabs.logging.mongo
Enum LogMsg

java.lang.Object
  extended by java.lang.Enum<LogMsg>
      extended by com.deftlabs.logging.mongo.LogMsg
All Implemented Interfaces:
Serializable, Comparable<LogMsg>

public enum LogMsg
extends Enum<LogMsg>

The log message format.


Enum Constant Summary
APP_PID
           
LEVEL
           
LOGGER
           
MSG
           
MSG_SEQ
           
NODE_NAME
           
RES_BUNDLE
           
SRC_CLASS
           
SRC_METHOD
           
THREAD
           
THROWN
           
TIMESTAMP
           
 
Field Summary
 String field
           
 
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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 Detail

field

public final String field
Method Detail

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()