#[non_exhaustive]pub enum LogSeverity {
Default,
Debug,
Info,
Notice,
Warning,
Error,
Critical,
Alert,
Emergency,
UnknownValue(UnknownValue),
}Expand description
The severity of the event described in a log entry, expressed as one of the standard severity levels listed below. For your reference, the levels are assigned the listed numeric values. The effect of using numeric values other than those listed is undefined.
You can filter for log entries by severity. For example, the following
filter expression will match log entries with severities INFO, NOTICE,
and WARNING:
severity > DEBUG AND severity <= WARNINGIf you are writing log entries, you should map other severity encodings to
one of these standard levels. For example, you might map all of Java’s FINE,
FINER, and FINEST levels to LogSeverity.DEBUG. You can preserve the
original severity level in the log entry payload if you wish.
§Working with unknown values
This enum is defined as #[non_exhaustive] because Google Cloud may add
additional enum variants at any time. Adding new variants is not considered
a breaking change. Applications should write their code in anticipation of:
- New values appearing in future releases of the client library, and
- New values received dynamically, without application changes.
Please consult the Working with enums section in the user guide for some guidelines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Default
(0) The log entry has no assigned severity level.
Debug
(100) Debug or trace information.
Info
(200) Routine information, such as ongoing status or performance.
Notice
(300) Normal but significant events, such as start up, shut down, or a configuration change.
Warning
(400) Warning events might cause problems.
Error
(500) Error events are likely to cause problems.
Critical
(600) Critical events cause more severe problems or outages.
Alert
(700) A person must take an action immediately.
Emergency
(800) One or more systems are unusable.
UnknownValue(UnknownValue)
If set, the enum was initialized with an unknown value.
Applications can examine the value using LogSeverity::value or LogSeverity::name.
Implementations§
Trait Implementations§
Source§impl Clone for LogSeverity
impl Clone for LogSeverity
Source§fn clone(&self) -> LogSeverity
fn clone(&self) -> LogSeverity
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more