com.morpho.morphosmart.sdk
Enum MorphoLogLevel

java.lang.Object
  extended by java.lang.Enum<MorphoLogLevel>
      extended by com.morpho.morphosmart.sdk.MorphoLogLevel
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<MorphoLogLevel>

public enum MorphoLogLevel
extends java.lang.Enum<MorphoLogLevel>


Enum Constant Summary
MORPHO_LOG_DEBUG
          For recording the traces with the level ERROR or WARNING or INFO or DEBUG
MORPHO_LOG_ERROR
          For recording the traces with the level ERROR
MORPHO_LOG_INFO
          For recording the traces with the level ERROR or WARNING or INFO
MORPHO_LOG_NOLOG
          Logging disabled
MORPHO_LOG_WARNING
          for recording the traces with the level ERROR or WARNING
 
Method Summary
static MorphoLogLevel fromString(java.lang.String label)
           
 int getCode()
           
 java.lang.String getLabel()
           
static MorphoLogLevel valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static MorphoLogLevel[] 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

MORPHO_LOG_NOLOG

public static final MorphoLogLevel MORPHO_LOG_NOLOG
Logging disabled


MORPHO_LOG_ERROR

public static final MorphoLogLevel MORPHO_LOG_ERROR
For recording the traces with the level ERROR


MORPHO_LOG_WARNING

public static final MorphoLogLevel MORPHO_LOG_WARNING
for recording the traces with the level ERROR or WARNING


MORPHO_LOG_INFO

public static final MorphoLogLevel MORPHO_LOG_INFO
For recording the traces with the level ERROR or WARNING or INFO


MORPHO_LOG_DEBUG

public static final MorphoLogLevel MORPHO_LOG_DEBUG
For recording the traces with the level ERROR or WARNING or INFO or DEBUG

Method Detail

values

public static MorphoLogLevel[] 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 (MorphoLogLevel c : MorphoLogLevel.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static MorphoLogLevel valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getCode

public int getCode()
Returns:
Log level code

getLabel

public java.lang.String getLabel()

fromString

public static MorphoLogLevel fromString(java.lang.String label)