[][src]Struct replicante_logging::Config

pub struct Config {
    pub async_flush: bool,
    pub backend: LoggingBackend,
    pub include_version: bool,
    pub level: LoggingLevel,
    pub modules: BTreeMap<String, LoggingLevel>,
    pub verbose: bool,
}

Logging configuration options.

Fields

async_flush: bool

Flush logs asynchronously.

backend: LoggingBackend

The backend to send logs to.

include_version: bool

Include the version in every log record.

level: LoggingLevel

The minimum logging level.

modules: BTreeMap<String, LoggingLevel>

Advanced level configuration by module prefix.

The keys in this map are used as prefix matches against log event modules. If a match is found the mapped level is used for the event. If no match is found the level value is used as the filter.

verbose: bool

Enable verbose debug logs.

When DEBUG level is enbabled, things can get loud pretty easily. To allow DEBUG level to be more usefull, only application events are emitted at DEBUG level while dependency events are emitted at INFO level.

Verbose mode can be used in cases where DEBUG level should be enabled by default on all events and not just the application logs.

Trait Implementations

impl Clone for Config[src]

impl Debug for Config[src]

impl Default for Config[src]

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

impl Eq for Config[src]

impl Hash for Config[src]

impl Ord for Config[src]

impl PartialEq<Config> for Config[src]

impl PartialOrd<Config> for Config[src]

impl Serialize for Config[src]

impl StructuralEq for Config[src]

impl StructuralPartialEq for Config[src]

Auto Trait Implementations

impl RefUnwindSafe for Config

impl Send for Config

impl Sync for Config

impl Unpin for Config

impl UnwindSafe for Config

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: 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.