Package com.google.cloud.logging
Class LoggingLevel
java.lang.Object
java.util.logging.Level
com.google.cloud.logging.LoggingLevel
- All Implemented Interfaces:
Serializable
This 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 < FINES
T
Notice that ERROR
is lower than Level.SEVERE
but higher than
Level.WARNING
. DEBUG
instead is lower than Level.FINEST
but higher than Level.ALL
.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final LoggingLevel
A level to be used when a person must take an action immediately.static final LoggingLevel
A level to be used when critical events cause more severe problems or brief outages.static final LoggingLevel
A level to be used for debug or trace information.static final LoggingLevel
A levet to be used when one or more systems are unusable.static final LoggingLevel
A level to be used when events occur that are likely to cause problems.static final LoggingLevel
A level to be used when normal events occur, such as start up and shut down. -
Method Summary
Modifier and TypeMethodDescriptionReturns the Cloud Logging severity associated with this logging level.Methods inherited from class java.util.logging.Level
equals, getLocalizedName, getName, getResourceBundleName, hashCode, intValue, parse, toString
-
Field Details
-
DEBUG
A level to be used for debug or trace information. This level is initialized to250
. -
NOTICE
A level to be used when normal events occur, such as start up and shut down. This level is initialized to850
. -
ERROR
A level to be used when events occur that are likely to cause problems. This level is initialized to950
. -
CRITICAL
A level to be used when critical events cause more severe problems or brief outages. This level is initialized to1050
. -
ALERT
A level to be used when a person must take an action immediately. This level is initialized to1100
. -
EMERGENCY
A levet to be used when one or more systems are unusable. This level is initialized to1150
.
-
-
Method Details
-
getSeverity
Returns the Cloud Logging severity associated with this logging level.
-