pub enum Severity {
Default,
Debug,
Info,
Notice,
Warning,
Error,
Critical,
Alert,
Emergency,
}Expand description
Allows using any severity value supported by Cloud Logging.
Use like:
use tracing_google_cloud::Severity;
tracing::debug!(severity = %Severity::Debug, "message");
tracing::info!(severity = %Severity::Info, "information");
tracing::info!(severity = %Severity::Notice, "hmm notice");
tracing::warn!(severity = %Severity::Warning, "a scary warning!");
tracing::error!(severity = %Severity::Error, "something is wrong");
// these are only available as Severity enums:
tracing::error!(severity = %Severity::Critical, "critical error!");
tracing::error!(severity = %Severity::Alert, "oh no!");
tracing::error!(severity = %Severity::Emergency, "this service is on fire now");The tracing level is ignored by this crate when using the severity field.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Severity
impl RefUnwindSafe for Severity
impl Send for Severity
impl Sync for Severity
impl Unpin for Severity
impl UnsafeUnpin for Severity
impl UnwindSafe for Severity
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
Mutably borrows from an owned value. Read more