rustwatch 0.2.2

First-class logging and monitoring for Rust applications. Deep insights and structured logs, wherever you deploy.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use thiserror::Error;

/// Core error type for the logging system.
///
/// Represents all possible failures that can occur in level parsing
/// and core logging infrastructure.
#[derive(Debug, Error)]
pub enum Error {
    /// Invalid log level name was provided.
    #[error("invalid log level: {0}")]
    InvalidLevel(String),

    /// Invalid numeric severity value was provided.
    #[error("invalid severity value: {0}")]
    InvalidSeverity(i8),
}