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
Required Methods
fn try_into_builder(self) -> Result<Self::Builder>
Makes a logger builder associated with this configuration.
Provided Methods
fn from_toml_file<P: AsRef<Path>>(path: P) -> Result<Self>
Makes a configuration from the specified TOML file.
fn from_toml(toml: &str) -> Result<Self>
Makes a configuration from the TOML text.
fn to_toml(&self) -> Result<String>
Converts to TOML text.
Implementors
impl Config for FileLoggerConfig
impl Config for NullLoggerConfig
impl Config for TerminalLoggerConfig
impl Config for LoggerConfig