Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

abeans::pluggable::acs::logging::LoggingLevel Class Reference

Inheritance diagram for abeans::pluggable::acs::logging::LoggingLevel:

Inheritance graph
[legend]
Collaboration diagram for abeans::pluggable::acs::logging::LoggingLevel:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LoggingLevel (String name, int value, int acsLevel)
int getAcsLevel ()
String getEntryName ()
int compareTo (Object obj)

Static Public Member Functions

LoggingLevel getNativeLevel (Level level)

Static Public Attributes

final LoggingLevel TRACE = new LoggingLevel("TRACE", 400, ACS_LEVEL_TRACE)
final LoggingLevel DEBUG = new LoggingLevel("DEBUG", 700, ACS_LEVEL_DEBUG)
final LoggingLevel INFO = new LoggingLevel("INFO", 800, ACS_LEVEL_INFO)
final LoggingLevel NOTICE = new LoggingLevel("NOTICE", 801, ACS_LEVEL_NOTICE)
final LoggingLevel WARNING = new LoggingLevel("WARNING", 900, ACS_LEVEL_WARNING)
final LoggingLevel ERROR = new LoggingLevel("ERROR", 901, ACS_LEVEL_ERROR)
final LoggingLevel CRITICAL = new LoggingLevel("CRITICAL", 902, ACS_LEVEL_CRITICAL)
final LoggingLevel ALERT = new LoggingLevel("ALERT", 903, ACS_LEVEL_ALERT)
final LoggingLevel EMERGENCY = new LoggingLevel("EMERGENCY", 1000, ACS_LEVEL_EMERGENCY)

Private Attributes

int acsLevel = ACS_LEVEL_UNKNOWN
String entryName = null

Static Private Attributes

final String ACS_BUNDLE_NAME = LoggingLevel.class.getPackage().getName()
TreeSet known = new TreeSet()
HashMap lookup = new HashMap()

Detailed Description

Defines ACS specific logging levels. Also provides non-ACS level, which includes set of standard logging and possibly other vendor levels, to ACS level mapping.

Author:
Matej Sekoranja (matej.sekoranja@cosylab.com)
Version:
@VERSION@


Constructor & Destructor Documentation

abeans::pluggable::acs::logging::LoggingLevel::LoggingLevel String  name,
int  value,
int  acsLevel
[inline]
 

Create a named Level with a given integer value.

Parameters:
name the name of the Level, for example "INFO".
value an integer value for the level.


Member Function Documentation

int abeans::pluggable::acs::logging::LoggingLevel::compareTo Object  obj  )  [inline]
 

Compares thoe level with the specified level for order.

See also:
java.lang.Comparable#compareTo(Object)

int abeans::pluggable::acs::logging::LoggingLevel::getAcsLevel  )  [inline]
 

Returns the ACS core level.

Returns:
ACS core level

String abeans::pluggable::acs::logging::LoggingLevel::getEntryName  )  [inline]
 

Returns the ACS XML level entryName.

Returns:
ACS XML level entryName

LoggingLevel abeans::pluggable::acs::logging::LoggingLevel::getNativeLevel Level  level  )  [inline, static]
 

Maps level to native level.

Parameters:
level any level
Returns:
native level, can be null if no native levels found or Level.OFF.intValue()


Member Data Documentation

final String abeans::pluggable::acs::logging::LoggingLevel::ACS_BUNDLE_NAME = LoggingLevel.class.getPackage().getName() [static, private]
 

The resource bundle name to be used in localizing ACS level name.

int abeans::pluggable::acs::logging::LoggingLevel::acsLevel = ACS_LEVEL_UNKNOWN [private]
 

The resource bundle name to be used in localizing ACS level name.

final LoggingLevel abeans::pluggable::acs::logging::LoggingLevel::ALERT = new LoggingLevel("ALERT", 903, ACS_LEVEL_ALERT) [static]
 

A condition that should be corrected immediately, such as a corrupted system database.

final LoggingLevel abeans::pluggable::acs::logging::LoggingLevel::CRITICAL = new LoggingLevel("CRITICAL", 902, ACS_LEVEL_CRITICAL) [static]
 

Critical conditions, such as hard device errors.

final LoggingLevel abeans::pluggable::acs::logging::LoggingLevel::DEBUG = new LoggingLevel("DEBUG", 700, ACS_LEVEL_DEBUG) [static]
 

Messages that contain information normally of use only when debugging a program.

final LoggingLevel abeans::pluggable::acs::logging::LoggingLevel::EMERGENCY = new LoggingLevel("EMERGENCY", 1000, ACS_LEVEL_EMERGENCY) [static]
 

A panic condition. This is normally broadcast to all users.

String abeans::pluggable::acs::logging::LoggingLevel::entryName = null [private]
 

XML Entry name.

final LoggingLevel abeans::pluggable::acs::logging::LoggingLevel::ERROR = new LoggingLevel("ERROR", 901, ACS_LEVEL_ERROR) [static]
 

Error messages.

final LoggingLevel abeans::pluggable::acs::logging::LoggingLevel::INFO = new LoggingLevel("INFO", 800, ACS_LEVEL_INFO) [static]
 

Informational messages.

TreeSet abeans::pluggable::acs::logging::LoggingLevel::known = new TreeSet() [static, private]
 

List of all ACS levels.

HashMap abeans::pluggable::acs::logging::LoggingLevel::lookup = new HashMap() [static, private]
 

Fast lookup table mapping.

final LoggingLevel abeans::pluggable::acs::logging::LoggingLevel::NOTICE = new LoggingLevel("NOTICE", 801, ACS_LEVEL_NOTICE) [static]
 

Conditions that are not error conditions, but that may require special handling.

final LoggingLevel abeans::pluggable::acs::logging::LoggingLevel::TRACE = new LoggingLevel("TRACE", 400, ACS_LEVEL_TRACE) [static]
 

Messages indicating function-calling sequence.

final LoggingLevel abeans::pluggable::acs::logging::LoggingLevel::WARNING = new LoggingLevel("WARNING", 900, ACS_LEVEL_WARNING) [static]
 

Warning messages.


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:43:27 2009 for ACS Java API by doxygen 1.3.8