Inherits java::util::logging::Level.
Public Member Functions | |
AcsLogLevel (String name, int value, AcsLogLevelDefinition acsCoreLevel) | |
AcsLogLevelDefinition | getAcsLevel () |
String | getEntryName () |
int | compareTo (AcsLogLevel l) |
Static Public Member Functions | |
static AcsLogLevel | fromAcsCoreLevel (AcsLogLevelDefinition acsCoreLevel) |
static Level | getLowestMatchingJdkLevel (AcsLogLevelDefinition acsCoreLevel) |
static AcsLogLevel | getNativeLevel (Level level) |
Static Public Attributes | |
static final AcsLogLevel | TRACE = new AcsLogLevel("TRACE", Level.FINEST.intValue(), AcsLogLevelDefinition.TRACE) |
static final AcsLogLevel | DELOUSE = new AcsLogLevel("DELOUSE", Level.FINER.intValue(), AcsLogLevelDefinition.DELOUSE) |
static final AcsLogLevel | DEBUG = new AcsLogLevel("DEBUG", Level.CONFIG.intValue(), AcsLogLevelDefinition.DEBUG) |
static final AcsLogLevel | INFO = new AcsLogLevel("INFO", Level.INFO.intValue(), AcsLogLevelDefinition.INFO) |
static final AcsLogLevel | NOTICE = new AcsLogLevel("NOTICE", 801, AcsLogLevelDefinition.NOTICE) |
static final AcsLogLevel | WARNING = new AcsLogLevel("WARNING", Level.WARNING.intValue(), AcsLogLevelDefinition.WARNING) |
static final AcsLogLevel | ERROR = new AcsLogLevel("ERROR", 901, AcsLogLevelDefinition.ERROR) |
static final AcsLogLevel | CRITICAL = new AcsLogLevel("CRITICAL", 902, AcsLogLevelDefinition.CRITICAL) |
static final AcsLogLevel | ALERT = new AcsLogLevel("ALERT", 903, AcsLogLevelDefinition.ALERT) |
static final AcsLogLevel | EMERGENCY = new AcsLogLevel("EMERGENCY", Level.SEVERE.intValue(), AcsLogLevelDefinition.EMERGENCY) |
static final AcsLogLevel | OFF = new AcsLogLevel(Level.OFF.getName(), Level.OFF.intValue(), AcsLogLevelDefinition.OFF) |
Static Package Functions | |
static void | printMappings (PrintStream ps) |
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. Maps Java-specific levels to ACS specific levels.
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.
alma.acs.logging.AcsLogLevel.AcsLogLevel | ( | String | name, | |
int | value, | |||
AcsLogLevelDefinition | acsCoreLevel | |||
) |
Create a named Level with a given integer value.
name | the name of the Level, for example "INFO". | |
value | an integer value for the level. |
int alma.acs.logging.AcsLogLevel.compareTo | ( | AcsLogLevel | l | ) |
Compares the level with the specified level for order.
static AcsLogLevel alma.acs.logging.AcsLogLevel.fromAcsCoreLevel | ( | AcsLogLevelDefinition | acsCoreLevel | ) | [static] |
Converts an ACS core log level (small integer as defined in ACS IDL) to the largest matching AcsLogLevel.
References alma.acs.logging.AcsLogLevel.getAcsLevel().
Referenced by alma.contLogTest.TestLogLevelsCompImpl.TestLogLevelsCompImpl.logDummyMessages().
AcsLogLevelDefinition alma.acs.logging.AcsLogLevel.getAcsLevel | ( | ) |
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.
Referenced by alma.acs.logging.formatters.AcsXMLLogFormatter.format(), alma.acs.logging.formatters.AcsBinLogFormatter.formatBinary(), alma.acs.logging.AcsLogLevel.fromAcsCoreLevel(), and alma.contLogTest.TestLogLevelsCompImpl.TestLogLevelsCompImpl.getLevels().
String alma.acs.logging.AcsLogLevel.getEntryName | ( | ) |
Returns the ACS XML level entryName.
Referenced by alma.acs.logging.formatters.AcsXMLLogFormatter.format().
static Level alma.acs.logging.AcsLogLevel.getLowestMatchingJdkLevel | ( | AcsLogLevelDefinition | acsCoreLevel | ) | [static] |
Converts an ACS core log level (small integer as defined in ACS IDL) to the lowest matching AcsLogLevel or JDK Level.
Note the difference to fromAcsCoreLevel(AcsLogLevelDefinition):
References alma.acs.logging.AcsLogLevel.ALERT, alma.acs.logging.AcsLogLevel.CRITICAL, alma.acs.logging.AcsLogLevel.DEBUG, alma.acs.logging.AcsLogLevel.DELOUSE, alma.acs.logging.AcsLogLevel.EMERGENCY, alma.acs.logging.AcsLogLevel.ERROR, alma.acs.logging.AcsLogLevel.INFO, alma.acs.logging.AcsLogLevel.NOTICE, alma.acs.logging.AcsLogLevel.OFF, alma.acs.logging.AcsLogLevel.TRACE, and alma.acs.logging.AcsLogLevel.WARNING.
static AcsLogLevel alma.acs.logging.AcsLogLevel.getNativeLevel | ( | Level | level | ) | [static] |
Maps any (JDK or ACS) level to an ACS native level.
Note that for some strange historical reason, the ACS log level is called "native" here, to confuse those who think that JDK levels would be native...
level | any level |
null
if no native level is found or if level==Level.OFF Referenced by alma.contLogTest.TestLogLevelsCompImpl.TestLogLevelsCompImpl.getLevels().
static void alma.acs.logging.AcsLogLevel.printMappings | ( | PrintStream | ps | ) | [static, package] |
This method should only be used to generate documentation about the various level mappings in use.
ps | The PrintStream to print to, e.g. System.out |
final AcsLogLevel alma.acs.logging.AcsLogLevel.ALERT = new AcsLogLevel("ALERT", 903, AcsLogLevelDefinition.ALERT) [static] |
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
Referenced by alma.acs.logging.AcsLogLevel.getLowestMatchingJdkLevel().
final AcsLogLevel alma.acs.logging.AcsLogLevel.CRITICAL = new AcsLogLevel("CRITICAL", 902, AcsLogLevelDefinition.CRITICAL) [static] |
Critical conditions, such as hard device errors. TODO: use something like 960 instead of 902 to allow other levels between CRITICAL and ERROR
Referenced by alma.acs.logging.AcsLogLevel.getLowestMatchingJdkLevel().
final AcsLogLevel alma.acs.logging.AcsLogLevel.DEBUG = new AcsLogLevel("DEBUG", Level.CONFIG.intValue(), AcsLogLevelDefinition.DEBUG) [static] |
Messages that contain information normally of use only when debugging a program. Java levels FINE and CONFIG map to this DEBUG level.
Referenced by alma.acs.logging.AcsLogLevel.getLowestMatchingJdkLevel().
final AcsLogLevel alma.acs.logging.AcsLogLevel.DELOUSE = new AcsLogLevel("DELOUSE", Level.FINER.intValue(), AcsLogLevelDefinition.DELOUSE) [static] |
A lower level than DEBUG, just to allow finer tuning. Generally same meaning. See COMP-3749.
Referenced by alma.acs.logging.AcsLogLevel.getLowestMatchingJdkLevel().
final AcsLogLevel alma.acs.logging.AcsLogLevel.EMERGENCY = new AcsLogLevel("EMERGENCY", Level.SEVERE.intValue(), AcsLogLevelDefinition.EMERGENCY) [static] |
A panic condition. This is normally broadcast to all users.
Referenced by alma.acs.logging.AcsLogLevel.getLowestMatchingJdkLevel().
final AcsLogLevel alma.acs.logging.AcsLogLevel.ERROR = new AcsLogLevel("ERROR", 901, AcsLogLevelDefinition.ERROR) [static] |
Error messages. TODO: use something like 930 instead of 901 to allow other levels between ERROR and WARNING
Referenced by alma.acs.logging.AcsLogLevel.getLowestMatchingJdkLevel().
final AcsLogLevel alma.acs.logging.AcsLogLevel.INFO = new AcsLogLevel("INFO", Level.INFO.intValue(), AcsLogLevelDefinition.INFO) [static] |
Informational messages.
Referenced by alma.acs.logging.AcsLogLevel.getLowestMatchingJdkLevel().
final AcsLogLevel alma.acs.logging.AcsLogLevel.NOTICE = new AcsLogLevel("NOTICE", 801, AcsLogLevelDefinition.NOTICE) [static] |
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
Referenced by alma.acs.logging.AcsLogLevel.getLowestMatchingJdkLevel().
final AcsLogLevel alma.acs.logging.AcsLogLevel.OFF = new AcsLogLevel(Level.OFF.getName(), Level.OFF.intValue(), AcsLogLevelDefinition.OFF) [static] |
Level not to be used for actual logging, but to set log levels for filtering. Overwrites/hides Level.OFF.
Referenced by alma.acs.logging.AcsLogLevel.getLowestMatchingJdkLevel().
final AcsLogLevel alma.acs.logging.AcsLogLevel.TRACE = new AcsLogLevel("TRACE", Level.FINEST.intValue(), AcsLogLevelDefinition.TRACE) [static] |
Messages indicating function-calling sequence. Messages indicating function-calling sequence.
Referenced by alma.acs.logging.AcsLogLevel.getLowestMatchingJdkLevel().
final AcsLogLevel alma.acs.logging.AcsLogLevel.WARNING = new AcsLogLevel("WARNING", Level.WARNING.intValue(), AcsLogLevelDefinition.WARNING) [static] |
Warning messages.
Referenced by alma.acs.logging.AcsLogLevel.getLowestMatchingJdkLevel().