Enum google_api_proto::google::logging::type::LogSeverity
source · #[repr(i32)]pub enum LogSeverity {
Default = 0,
Debug = 100,
Info = 200,
Notice = 300,
Warning = 400,
Error = 500,
Critical = 600,
Alert = 700,
Emergency = 800,
}
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 <= WARNING
If 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.
Variants§
Default = 0
(0) The log entry has no assigned severity level.
Debug = 100
(100) Debug or trace information.
Info = 200
(200) Routine information, such as ongoing status or performance.
Notice = 300
(300) Normal but significant events, such as start up, shut down, or a configuration change.
Warning = 400
(400) Warning events might cause problems.
Error = 500
(500) Error events are likely to cause problems.
Critical = 600
(600) Critical events cause more severe problems or outages.
Alert = 700
(700) A person must take an action immediately.
Emergency = 800
(800) One or more systems are unusable.
Implementations§
source§impl LogSeverity
impl LogSeverity
source§impl LogSeverity
impl LogSeverity
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
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 moresource§impl Debug for LogSeverity
impl Debug for LogSeverity
source§impl Default for LogSeverity
impl Default for LogSeverity
source§fn default() -> LogSeverity
fn default() -> LogSeverity
source§impl From<LogSeverity> for i32
impl From<LogSeverity> for i32
source§fn from(value: LogSeverity) -> i32
fn from(value: LogSeverity) -> i32
source§impl Hash for LogSeverity
impl Hash for LogSeverity
source§impl Ord for LogSeverity
impl Ord for LogSeverity
source§fn cmp(&self, other: &LogSeverity) -> Ordering
fn cmp(&self, other: &LogSeverity) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for LogSeverity
impl PartialEq for LogSeverity
source§fn eq(&self, other: &LogSeverity) -> bool
fn eq(&self, other: &LogSeverity) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for LogSeverity
impl PartialOrd for LogSeverity
source§fn partial_cmp(&self, other: &LogSeverity) -> Option<Ordering>
fn partial_cmp(&self, other: &LogSeverity) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for LogSeverity
impl TryFrom<i32> for LogSeverity
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<LogSeverity, UnknownEnumValue>
fn try_from(value: i32) -> Result<LogSeverity, UnknownEnumValue>
impl Copy for LogSeverity
impl Eq for LogSeverity
impl StructuralPartialEq for LogSeverity
Auto Trait Implementations§
impl Freeze for LogSeverity
impl RefUnwindSafe for LogSeverity
impl Send for LogSeverity
impl Sync for LogSeverity
impl Unpin for LogSeverity
impl UnwindSafe for LogSeverity
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request