org.systinet.monitoring
Class Severities

java.lang.Object
  extended byorg.systinet.monitoring.Severities

public class Severities
extends java.lang.Object

This class defines severities for log events.

Since:
4.6.1
Component:
Event-Monitoring

Field Summary
static int ERROR
          The ERROR severity designates error events that might still allow the application to continue running.
static java.lang.String ERROR_TEXT
           
static int FATAL
          The FATAL level designates very severe error events that will presumably lead the application to abort.
static java.lang.String FATAL_TEXT
           
static int FINE
          The FINE designates fine-grained informational events that are most useful to debug an application.
static java.lang.String FINE_TEXT
           
static int INFO
          The INFO level designates informational messages that highlight the progress of the application at coarse-grained level.
static java.lang.String INFO_TEXT
           
static int OFF
          The OFF level designates is intended to turn off logging.
static java.lang.String OFF_TEXT
           
static int WARN
          The WARN level designates potentially harmful situations.
static java.lang.String WARN_TEXT
           
 
Constructor Summary
Severities()
           
 
Method Summary
static java.lang.String getSeverityName(int i)
          Gets severity name from int value.
static int severityNameToInt(java.lang.String severityName)
          Converts severity name to int value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FINE

public static final int FINE
The FINE designates fine-grained informational events that are most useful to debug an application.

See Also:
Constant Field Values

FINE_TEXT

public static final java.lang.String FINE_TEXT
See Also:
Constant Field Values

INFO

public static final int INFO
The INFO level designates informational messages that highlight the progress of the application at coarse-grained level.

See Also:
Constant Field Values

INFO_TEXT

public static final java.lang.String INFO_TEXT
See Also:
Constant Field Values

WARN

public static final int WARN
The WARN level designates potentially harmful situations.

See Also:
Constant Field Values

WARN_TEXT

public static final java.lang.String WARN_TEXT
See Also:
Constant Field Values

ERROR

public static final int ERROR
The ERROR severity designates error events that might still allow the application to continue running.

See Also:
Constant Field Values

ERROR_TEXT

public static final java.lang.String ERROR_TEXT
See Also:
Constant Field Values

FATAL

public static final int FATAL
The FATAL level designates very severe error events that will presumably lead the application to abort.

See Also:
Constant Field Values

FATAL_TEXT

public static final java.lang.String FATAL_TEXT
See Also:
Constant Field Values

OFF

public static final int OFF
The OFF level designates is intended to turn off logging.

See Also:
Constant Field Values

OFF_TEXT

public static final java.lang.String OFF_TEXT
See Also:
Constant Field Values
Constructor Detail

Severities

public Severities()
Method Detail

severityNameToInt

public static final int severityNameToInt(java.lang.String severityName)
Converts severity name to int value

Parameters:
severityName - severity name

getSeverityName

public static final java.lang.String getSeverityName(int i)
Gets severity name from int value.

Parameters:
i - severity int value
Returns:
severity name