Enum gapi_grpc::google::logging::type::LogSeverity[][src]

#[repr(i32)]pub enum LogSeverity {
    Default,
    Debug,
    Info,
    Notice,
    Warning,
    Error,
    Critical,
    Alert,
    Emergency,
}

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) 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.

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]

impl Copy for LogSeverity[src]

impl Debug for LogSeverity[src]

impl Default for LogSeverity[src]

impl Eq for LogSeverity[src]

impl From<LogSeverity> for i32[src]

impl Hash for LogSeverity[src]

impl Ord for LogSeverity[src]

impl PartialEq<LogSeverity> for LogSeverity[src]

impl PartialOrd<LogSeverity> for LogSeverity[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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]