Trait sloggers::Config [] [src]

pub trait Config: Sized + Serialize + for<'a> Deserialize<'a> {
    type Builder: Build;
    fn try_into_builder(self) -> Result<Self::Builder>;

    fn from_toml_file<P: AsRef<Path>>(path: P) -> Result<Self> { ... }
    fn from_toml(toml: &str) -> Result<Self> { ... }
    fn to_toml(&self) -> Result<String> { ... }
}

Configuration of a logger builder.

Associated Types

Logger builder.

Required Methods

Makes a logger builder associated with this configuration.

Provided Methods

Makes a configuration from the specified TOML file.

Makes a configuration from the TOML text.

Converts to TOML text.

Implementors