[]Struct sentry::integrations::log::LogIntegration

pub struct LogIntegration {
    pub global_filter: Option<LevelFilter>,
    pub filter: LevelFilter,
    pub emit_breadcrumbs: bool,
    pub emit_error_events: bool,
    pub emit_warning_events: bool,
    pub attach_stacktraces: bool,
    pub dest_log: Option<Box<dyn Log + 'static>>,
}

Logger specific options.

Fields

global_filter: Option<LevelFilter>

The global filter that should be used (also used before dispatching to the nested logger).

filter: LevelFilter

The sentry specific log level filter (defaults to Info)

emit_breadcrumbs: bool

If set to true, breadcrumbs will be emitted. (defaults to true)

emit_error_events: bool

If set to true error events will be sent for errors in the log. (defaults to true)

emit_warning_events: bool

If set to true warning events will be sent for warnings in the log. (defaults to false)

attach_stacktraces: bool

If set to true current stacktrace will be resolved and attached to each event. (expensive, defaults to true)

dest_log: Option<Box<dyn Log + 'static>>

The destination log.

Implementations

impl LogIntegration

pub fn with_env_logger_dest(self, logger: Option<Logger>) -> LogIntegration

Initializes an env logger as destination target.

Trait Implementations

impl Default for LogIntegration

impl Integration for LogIntegration

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> From<T> for T[src]

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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>, 

impl<T> WithSubscriber for T[src]