[][src]Enum dropshot::ConfigLogging

pub enum ConfigLogging {
    StderrTerminal {
        level: ConfigLoggingLevel,
    },
    File {
        level: ConfigLoggingLevel,
        path: String,
        if_exists: ConfigLoggingIfExists,
    },
}

Represents the logging configuration for a server. This is expected to be a top-level block in a TOML config file, although that's not required.

Variants

StderrTerminal

Pretty-printed output to stderr, assumed to support terminal escapes.

Fields of StderrTerminal

level: ConfigLoggingLevel
File

Bunyan-formatted output to a specified file.

Fields of File

level: ConfigLoggingLevelpath: Stringif_exists: ConfigLoggingIfExists

Implementations

impl ConfigLogging[src]

pub fn to_logger<S: AsRef<str>>(&self, log_name: S) -> Result<Logger, Error>[src]

Create a root logger based on the requested configuration.

Trait Implementations

impl Clone for ConfigLogging[src]

impl Debug for ConfigLogging[src]

impl<'de> Deserialize<'de> for ConfigLogging[src]

impl PartialEq<ConfigLogging> for ConfigLogging[src]

impl Serialize for ConfigLogging[src]

impl StructuralPartialEq for ConfigLogging[src]

Auto Trait Implementations

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<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[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>,