public class AcsLogLevel extends java.util.logging.Level implements java.lang.Comparable<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.
| Modifier and Type | Field and Description |
|---|---|
static AcsLogLevel |
ALERT
A condition that should be corrected immediately, such as a
corrupted system database.
|
static AcsLogLevel |
CRITICAL
Critical conditions, such as hard device errors.
|
static AcsLogLevel |
DEBUG
Messages that contain information normally of use only when
debugging a program.
|
static AcsLogLevel |
DELOUSE
A lower level than DEBUG, just to allow finer tuning.
|
static AcsLogLevel |
EMERGENCY
A panic condition.
|
static AcsLogLevel |
ERROR
Error messages.
|
static AcsLogLevel |
INFO
Informational messages.
|
static AcsLogLevel |
NOTICE
Conditions that are not error conditions, but that may require
special handling.
|
static AcsLogLevel |
OFF
Level not to be used for actual logging, but to set log levels for filtering.
|
static AcsLogLevel |
TRACE
Messages indicating function-calling sequence.
|
static AcsLogLevel |
WARNING
Warning messages.
|
| Constructor and Description |
|---|
AcsLogLevel(java.lang.String name,
int value,
AcsLogLevelDefinition acsCoreLevel)
Create a named Level with a given integer value.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(AcsLogLevel l)
Compares the level with the specified level for order.
|
static AcsLogLevel |
fromAcsCoreLevel(AcsLogLevelDefinition acsCoreLevel)
Converts an ACS core log level (small integer as defined in ACS IDL)
to the largest matching AcsLogLevel.
|
AcsLogLevelDefinition |
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). |
java.lang.String |
getEntryName()
Returns the ACS XML level entryName.
|
static java.util.logging.Level |
getLowestMatchingJdkLevel(AcsLogLevelDefinition acsCoreLevel)
Converts an ACS core log level (small integer as defined in ACS IDL)
to the lowest matching AcsLogLevel or JDK Level.
|
static AcsLogLevel |
getNativeLevel(java.util.logging.Level level)
Maps any (JDK or ACS) level to an ACS native level.
|
public static final AcsLogLevel TRACE
public static final AcsLogLevel DELOUSE
public static final AcsLogLevel DEBUG
public static final AcsLogLevel INFO
public static final AcsLogLevel NOTICE
public static final AcsLogLevel WARNING
public static final AcsLogLevel ERROR
public static final AcsLogLevel CRITICAL
public static final AcsLogLevel ALERT
public static final AcsLogLevel EMERGENCY
public static final AcsLogLevel OFF
Level.OFF.public AcsLogLevel(java.lang.String name,
int value,
AcsLogLevelDefinition acsCoreLevel)
name - the name of the Level, for example "INFO".value - an integer value for the level.public static AcsLogLevel fromAcsCoreLevel(AcsLogLevelDefinition acsCoreLevel)
public static java.util.logging.Level getLowestMatchingJdkLevel(AcsLogLevelDefinition acsCoreLevel)
Note the difference to fromAcsCoreLevel(AcsLogLevelDefinition):
known
that includes all JDK Level and AcsLogLevel objects.)
public AcsLogLevelDefinition getAcsLevel()
alma.AcsLogging.alma.LogLevels.WARNING_NAME and similar constants).
This level is different from the JDK-style level, which can be any integer.
public java.lang.String getEntryName()
public int compareTo(AcsLogLevel l)
compareTo in interface java.lang.Comparable<AcsLogLevel>Comparable.compareTo(Object)public static AcsLogLevel getNativeLevel(java.util.logging.Level 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 levelnull if no native level is found or if level==Level.OFF