Struct sentry::integrations::log::LoggerOptions
source · [−]pub struct LoggerOptions {
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,
}Expand description
Logger specific options.
Fields
global_filter: Option<LevelFilter>The global filter that should be used (also used before dispatching to the nested logger).
filter: LevelFilterThe sentry specific log level filter (defaults to Info)
If set to true, breadcrumbs will be emitted. (defaults to true)
emit_error_events: boolIf set to true error events will be sent for errors in the log. (defaults to true)
emit_warning_events: boolIf set to true warning events will be sent for warnings in the log. (defaults to false)
attach_stacktraces: boolIf set to true current stacktrace will be resolved and attached
to each event. (expensive, defaults to true)
Trait Implementations
sourceimpl Default for LoggerOptions
impl Default for LoggerOptions
sourcefn default() -> LoggerOptions
fn default() -> LoggerOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for LoggerOptions
impl Send for LoggerOptions
impl Sync for LoggerOptions
impl Unpin for LoggerOptions
impl UnwindSafe for LoggerOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more