pub struct DefaultLogger;Expand description
Default logger implementation
Trait Implementations§
Source§impl HttpLogger for DefaultLogger
impl HttpLogger for DefaultLogger
Source§fn log(&self, req: &HttpRequest, res: &HttpResponse)
fn log(&self, req: &HttpRequest, res: &HttpResponse)
Log a successful request
Source§fn err(&self, req: &HttpRequest, res: &HttpResponse, error: &dyn HttpError)
fn err(&self, req: &HttpRequest, res: &HttpResponse, error: &dyn HttpError)
Log an error
Auto Trait Implementations§
impl Freeze for DefaultLogger
impl RefUnwindSafe for DefaultLogger
impl Send for DefaultLogger
impl Sync for DefaultLogger
impl Unpin for DefaultLogger
impl UnwindSafe for DefaultLogger
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