[−]Struct sentry::integrations::log::LogIntegration
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
)
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
fn default() -> LogIntegration
impl Integration for LogIntegration
fn name(&self) -> &'static str
fn setup(&self, cfg: &mut ClientOptions)
fn process_event(
&self,
event: Event<'static>,
options: &ClientOptions
) -> Option<Event<'static>>
[src]
&self,
event: Event<'static>,
options: &ClientOptions
) -> Option<Event<'static>>
Auto Trait Implementations
impl !RefUnwindSafe for LogIntegration
impl Send for LogIntegration
impl Sync for LogIntegration
impl Unpin for LogIntegration
impl !UnwindSafe for LogIntegration
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,