[−][src]Struct slog_env_cfg::Config
Holds the configuration parameters.
Used to build Drain
s.
Fields
format: LogFormat
Log format to provide.
disable_env_logger: bool
Disable env logger. You might want this for performance reasons or just for convenience: env logger hides log values by default, and turning the whole env logger off is a simple wordaround for that behavior.
env_logger_filters: Option<String>
Env Logger configuration to use (usually passed via RUST_LOG
env var).
env_logger_override_default_filter: Option<String>
If no configuration is passed to env logger, it adds the "error" filter by default. This allows for overriding this default with something more suitable.
Methods
impl Config
[src]
pub fn build(&self) -> impl SendSyncRefUnwindSafeDrain<Ok = (), Err = Never>
[src]
Build a Drain
according to the specified parameters.
The resulting Drain
is ready to use with slog::Logger::root
.
Trait Implementations
Auto Trait Implementations
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
impl RefUnwindSafe for Config
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,