Public Member Functions | |
AcsLogLevel (String name, int value, AcsLogLevelDefinition acsCoreLevel) | |
AcsLogLevelDefinition | getAcsLevel () |
String | getEntryName () |
int | compareTo (AcsLogLevel l) |
Static Public Member Functions | |
AcsLogLevel | fromAcsCoreLevel (AcsLogLevelDefinition acsCoreLevel) |
AcsLogLevel | getNativeLevel (Level level) |
Static Public Attributes | |
final AcsLogLevel | TRACE = new AcsLogLevel("TRACE", Level.FINEST.intValue(), AcsLogLevelDefinition.TRACE) |
final AcsLogLevel | DEBUG = new AcsLogLevel("DEBUG", Level.CONFIG.intValue(), AcsLogLevelDefinition.DEBUG) |
final AcsLogLevel | INFO = new AcsLogLevel("INFO", Level.INFO.intValue(), AcsLogLevelDefinition.INFO) |
final AcsLogLevel | NOTICE = new AcsLogLevel("NOTICE", 801, AcsLogLevelDefinition.NOTICE) |
final AcsLogLevel | WARNING = new AcsLogLevel("WARNING", Level.WARNING.intValue(), AcsLogLevelDefinition.WARNING) |
final AcsLogLevel | ERROR = new AcsLogLevel("ERROR", 901, AcsLogLevelDefinition.ERROR) |
final AcsLogLevel | CRITICAL = new AcsLogLevel("CRITICAL", 902, AcsLogLevelDefinition.CRITICAL) |
final AcsLogLevel | ALERT = new AcsLogLevel("ALERT", 903, AcsLogLevelDefinition.ALERT) |
final AcsLogLevel | EMERGENCY = new AcsLogLevel("EMERGENCY", Level.SEVERE.intValue(), AcsLogLevelDefinition.EMERGENCY) |
final AcsLogLevel | OFF = new AcsLogLevel(Level.OFF.getName(), Level.OFF.intValue(), AcsLogLevelDefinition.OFF) |
Static Package Functions | |
void | printMappings (PrintStream ps) |
Private Attributes | |
final AcsLogLevelDefinition | acsCoreLevel |
String | entryName = null |
Static Private Attributes | |
final String | ACS_BUNDLE_NAME = AcsLogLevel.class.getPackage().getName() |
TreeSet< AcsLogLevel > | known = new TreeSet<AcsLogLevel>() |
Map< Level, AcsLogLevel > | lookup = new HashMap<Level AcsLogLevel>() |
Although an OFF level is not mentioned in the Acs documentation, it is included for the purpose of dealing with bad levels as well as of blocking logging.
|
Create a named Level with a given integer value.
|
|
Compares the level with the specified level for order.
|
|
Converts an ACS core log level (as defined in ACS, Unix or similar) to the matching AcsLogLevel. If no AcsLogLevel directly corresponds to the given core level, then the AcsLogLevel whose associated acsCoreLevel is >= the given core level is chosen. : In the past the acsCoreLevel param was an int, in which case the iteration over "known" level list made sense. Now that these are enums we should translate more directly.
|
|
Returns the corresponding ACS core level, which is a small positive integer defined as "priority" in the ACS logging and archiving architecture document and coded in IDL (see alma.AcsLogging.alma.LogLevels.WARNING_NAME and similar constants). This level is different from the JDK-style level, which can be any integer.
|
|
Returns the ACS XML level entryName.
|
|
Maps any (JDK or ACS) level to an ACS native level.
|
|
This method should only be used to generate documentation about the various level mappings in use.
|
|
The resource bundle name to be used in localizing ACS level name. |
|
The ACS error system defined level (small integer) which this JDK-style level maps to |
|
A condition that should be corrected immediately, such as a corrupted system database. TODO: use something like 980 instead of 903 to allow other levels between ERROR and ALERT |
|
Critical conditions, such as hard device errors. TODO: use something like 960 instead of 902 to allow other levels between CRITICAL and ERROR |
|
Messages that contain information normally of use only when debugging a program. |
|
A panic condition. This is normally broadcast to all users. |
|
XML Entry name. |
|
Error messages. TODO: use something like 930 instead of 901 to allow other levels between ERROR and WARNING |
|
Informational messages. |
|
List of all ACS levels, sorted automatically with lowest log level first. |
|
Fast lookup table mapping. |
|
Conditions that are not error conditions, but that may require special handling. TODO: use something like 850 instead of 801 to allow other levels between INFO and NOTICE |
|
Level not to be used for actual logging, but to set log levels for filtering. Overwrites/hides Level.OFF. |
|
Messages indicating function-calling sequence. |
|
Warning messages. |