pub struct LogConsoleSubscriber { /* private fields */ }Expand description
Prints RosaceTrace::Log events to stdout, one colored line each. Ignores
every other (structured) event — those have their own sinks. Colors are
auto-disabled when stdout isn’t a TTY (piped/redirected), so log files stay
clean.
Implementations§
Source§impl LogConsoleSubscriber
impl LogConsoleSubscriber
Sourcepub fn with_color(self, on: bool) -> Self
pub fn with_color(self, on: bool) -> Self
Force color on/off (e.g. off for a log file, on for a color-capable pipe).
Trait Implementations§
Source§impl Default for LogConsoleSubscriber
impl Default for LogConsoleSubscriber
Source§impl TraceSubscriber for LogConsoleSubscriber
impl TraceSubscriber for LogConsoleSubscriber
Source§fn on_trace(&self, event: &RosaceTrace)
fn on_trace(&self, event: &RosaceTrace)
Called for every emitted
RosaceTrace event.Auto Trait Implementations§
impl Freeze for LogConsoleSubscriber
impl RefUnwindSafe for LogConsoleSubscriber
impl Send for LogConsoleSubscriber
impl Sync for LogConsoleSubscriber
impl Unpin for LogConsoleSubscriber
impl UnsafeUnpin for LogConsoleSubscriber
impl UnwindSafe for LogConsoleSubscriber
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more