com.sap.ip.me.api.logging
Class Severities

java.lang.Object
  extended bycom.sap.ip.me.api.logging.Severities

public class Severities
extends java.lang.Object

The severity constants for the Mobile Engine logging framework. The order of the severity levels is: ALL, DEBUG, PATH, INFO, WARNING, ERROR, FATAL

DEBUG: For debugging purpose, with extensive and low level information
PATH: For tracing the execution flow, e.g. used in the context of entering and leaving a method, looping and branching operations
INFO: Informational text, mostly for echoing what has been performed
WARNING: Application can recover from anomaly, and fulfill the desired task, but need attention from developer/operator
ERROR: Application can recover from error, but cannot fulfill desired task due to the error
FATAL: Application cannot recover from error, and the severe situation causes fatal termination

Since:
MI 2.5
Author:
SAP

Field Summary
static int ALL
          Severity that indicates that all messages will be logged
static int DEBUG
          Severity for debugging purposes
static int ERROR
          Severity for errors (default severity for exceptions)
static int FATAL
          Severtiy for fatal errors
static int INFO
          Severity for information purposes (default severity for log messages)
static int PATH
          Severity for path information (used to log the execution path of the application)
static int WARNING
          Severity for warnings.
 
Constructor Summary
Severities()
           
 
Method Summary
static java.lang.String getShortName(int severity)
          Gets a short String representation for the given severity type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALL

public static final int ALL
Severity that indicates that all messages will be logged

See Also:
Constant Field Values

DEBUG

public static final int DEBUG
Severity for debugging purposes

See Also:
Constant Field Values

PATH

public static final int PATH
Severity for path information (used to log the execution path of the application)

See Also:
Constant Field Values

INFO

public static final int INFO
Severity for information purposes (default severity for log messages)

See Also:
Constant Field Values

WARNING

public static final int WARNING
Severity for warnings.

See Also:
Constant Field Values

ERROR

public static final int ERROR
Severity for errors (default severity for exceptions)

See Also:
Constant Field Values

FATAL

public static final int FATAL
Severtiy for fatal errors

See Also:
Constant Field Values
Constructor Detail

Severities

public Severities()
Method Detail

getShortName

public static java.lang.String getShortName(int severity)
Gets a short String representation for the given severity type.

Parameters:
severity - The severity for the message
Returns:
The short name of the severity


Copyright © 2005 SAP AG. All Rights Reserved.