Enum gapi_grpc::google::logging::type::LogSeverity [−][src]
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
(0) The log entry has no assigned severity level.
(100) Debug or trace information.
(200) Routine information, such as ongoing status or performance.
(300) Normal but significant events, such as start up, shut down, or a configuration change.
(400) Warning events might cause problems.
(500) Error events are likely to cause problems.
(600) Critical events cause more severe problems or outages.
(700) A person must take an action immediately.
(800) One or more systems are unusable.
Implementations
impl LogSeverity
[src]
pub fn is_valid(value: i32) -> bool
[src]
Returns true
if value
is a variant of LogSeverity
.
pub fn from_i32(value: i32) -> Option<LogSeverity>
[src]
Converts an i32
to a LogSeverity
, or None
if value
is not a valid variant.
Trait Implementations
impl Clone for LogSeverity
[src]
fn clone(&self) -> LogSeverity
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for LogSeverity
[src]
impl Debug for LogSeverity
[src]
impl Default for LogSeverity
[src]
fn default() -> LogSeverity
[src]
impl Eq for LogSeverity
[src]
impl From<LogSeverity> for i32
[src]
fn from(value: LogSeverity) -> i32
[src]
impl Hash for LogSeverity
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for LogSeverity
[src]
fn cmp(&self, other: &LogSeverity) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<LogSeverity> for LogSeverity
[src]
fn eq(&self, other: &LogSeverity) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<LogSeverity> for LogSeverity
[src]
fn partial_cmp(&self, other: &LogSeverity) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for LogSeverity
[src]
impl StructuralPartialEq for LogSeverity
[src]
Auto Trait Implementations
impl RefUnwindSafe for LogSeverity
impl Send for LogSeverity
impl Sync for LogSeverity
impl Unpin for LogSeverity
impl UnwindSafe for LogSeverity
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,