public final class LoggingLevel extends LevelThis class adds some additional Java logging levels for Cloud Logging. Added levels fill in the gap between Java logging levels and Cloud Logging severities.
Added levels in descending order are (between parenthesis the relation with Java logging levels):
- EMERGENCY
- ALERT
- CRITICAL
- ERROR (
WARNING < ERROR < SEVERE) - NOTICE (
INFO < NOTICE < WARNING) - DEBUG (
ALL < DEBUG < FINEST
Notice that ERROR is lower than java.util.logging.Level#SEVERE but higher than
java.util.logging.Level#WARNING. DEBUG instead is lower than java.util.logging.Level#FINEST but higher than java.util.logging.Level#ALL.
Static Fields
ALERT
public static final LoggingLevel ALERTA level to be used when a person must take an action immediately. This level is initialized to
1100.
| Type | Description |
| LoggingLevel |
CRITICAL
public static final LoggingLevel CRITICALA level to be used when critical events cause more severe problems or brief outages. This level
is initialized to 1050.
| Type | Description |
| LoggingLevel |
DEBUG
public static final LoggingLevel DEBUGA level to be used for debug or trace information. This level is initialized to 250.
| Type | Description |
| LoggingLevel |
EMERGENCY
public static final LoggingLevel EMERGENCYA levet to be used when one or more systems are unusable. This level is initialized to
1150.
| Type | Description |
| LoggingLevel |
ERROR
public static final LoggingLevel ERRORA level to be used when events occur that are likely to cause problems. This level is
initialized to 950.
| Type | Description |
| LoggingLevel |
NOTICE
public static final LoggingLevel NOTICEA level to be used when normal events occur, such as start up and shut down. This level is
initialized to 850.
| Type | Description |
| LoggingLevel |
Methods
getSeverity()
public Severity getSeverity()Returns the Cloud Logging severity associated with this logging level.
| Type | Description |
| Severity |