Struct pyoxidizerlib::logging::PrintlnDrain [−][src]
pub struct PrintlnDrain { pub min_level: Level, }
A slog Drain that uses println!.
Fields
min_level: Level
Minimum logging level that we’re emitting.
Trait Implementations
impl Drain for PrintlnDrain
[src]
impl Drain for PrintlnDrain
[src]slog Drain that uses println!.
fn log(
&self,
record: &Record<'_>,
_values: &OwnedKVList
) -> Result<Self::Ok, Self::Err>
[src]
fn log(
&self,
record: &Record<'_>,
_values: &OwnedKVList
) -> Result<Self::Ok, Self::Err>
[src]Handle one logging statement (Record
) Read more
fn is_enabled(&self, level: Level) -> bool
[src]
fn is_enabled(&self, level: Level) -> bool
[src]Avoid: Check if messages at the specified log level are maybe enabled for this logger. Read more
fn is_critical_enabled(&self) -> bool
[src]
fn is_critical_enabled(&self) -> bool
[src]Avoid: See is_enabled
fn is_error_enabled(&self) -> bool
[src]
fn is_error_enabled(&self) -> bool
[src]Avoid: See is_enabled
fn is_warning_enabled(&self) -> bool
[src]
fn is_warning_enabled(&self) -> bool
[src]Avoid: See is_enabled
fn is_info_enabled(&self) -> bool
[src]
fn is_info_enabled(&self) -> bool
[src]Avoid: See is_enabled
fn is_debug_enabled(&self) -> bool
[src]
fn is_debug_enabled(&self) -> bool
[src]Avoid: See is_enabled
fn is_trace_enabled(&self) -> bool
[src]
fn is_trace_enabled(&self) -> bool
[src]Avoid: See is_enabled
fn map<F, R>(self, f: F) -> R where
F: FnOnce(Self) -> R,
[src]
fn map<F, R>(self, f: F) -> R where
F: FnOnce(Self) -> R,
[src]Pass Drain
through a closure, eg. to wrap
into another Drain
. Read more
fn filter<F>(self, f: F) -> Filter<Self, F> where
F: FilterFn,
[src]
fn filter<F>(self, f: F) -> Filter<Self, F> where
F: FilterFn,
[src]Filter logging records passed to Drain
Read more
fn filter_level(self, level: Level) -> LevelFilter<Self>
[src]
fn filter_level(self, level: Level) -> LevelFilter<Self>
[src]Filter logging records passed to Drain
(by level) Read more
fn map_err<F, E>(self, f: F) -> MapError<Self, E> where
F: MapErrFn<Self::Err, E>,
[src]
fn map_err<F, E>(self, f: F) -> MapError<Self, E> where
F: MapErrFn<Self::Err, E>,
[src]Map logging errors returned by this drain Read more
fn ignore_res(self) -> IgnoreResult<Self>
[src]
fn ignore_res(self) -> IgnoreResult<Self>
[src]Ignore results returned by this drain Read more
Auto Trait Implementations
impl RefUnwindSafe for PrintlnDrain
impl Send for PrintlnDrain
impl Sync for PrintlnDrain
impl Unpin for PrintlnDrain
impl UnwindSafe for PrintlnDrain
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> SendRefUnwindSafeDrain for T where
T: Drain + Send + RefUnwindSafe + ?Sized,
[src]
T: Drain + Send + RefUnwindSafe + ?Sized,
impl<T> SendSyncRefUnwindSafeDrain for T where
T: Drain + Send + Sync + RefUnwindSafe + ?Sized,
[src]
T: Drain + Send + Sync + RefUnwindSafe + ?Sized,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> SendSyncUnwindSafeDrain for T where
T: Drain + Send + Sync + UnwindSafe + ?Sized,
[src]
T: Drain + Send + Sync + UnwindSafe + ?Sized,