pub struct StderrLogger;Expand description
Minimal Logger that writes one line per event to stderr.
Useful as a quick-start and as a smoke-test hook. Not optimized for
production throughput; route to tracing / log for real workloads.
Trait Implementations§
Source§impl Debug for StderrLogger
impl Debug for StderrLogger
Source§impl Default for StderrLogger
impl Default for StderrLogger
Source§fn default() -> StderrLogger
fn default() -> StderrLogger
Returns the “default value” for a type. Read more
Source§impl Logger for StderrLogger
impl Logger for StderrLogger
Source§fn log_call_start(&self, event: &LogCallStart<'_>)
fn log_call_start(&self, event: &LogCallStart<'_>)
Called once per model call, after
transform_params and before the
inner model runs.Source§fn log_call_end(&self, event: &LogCallEnd<'_>)
fn log_call_end(&self, event: &LogCallEnd<'_>)
Called once per successful model call. Read more
Source§fn log_call_error(&self, event: &LogCallError<'_>)
fn log_call_error(&self, event: &LogCallError<'_>)
Called once per failed model call.
Source§fn log_stream_part(&self, _event: &LogStreamPart<'_>)
fn log_stream_part(&self, _event: &LogStreamPart<'_>)
Called once per emitted
StreamPart when the middleware is built
with LoggingMiddleware::with_stream_parts. Read moreAuto Trait Implementations§
impl Freeze for StderrLogger
impl RefUnwindSafe for StderrLogger
impl Send for StderrLogger
impl Sync for StderrLogger
impl Unpin for StderrLogger
impl UnsafeUnpin for StderrLogger
impl UnwindSafe for StderrLogger
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