pub struct InnerLogger {
pub colored: bool,
/* private fields */
}Fields§
§colored: boolImplementations§
Source§impl InnerLogger
impl InnerLogger
Sourcepub fn flush(&mut self)
pub fn flush(&mut self)
Drain the buffered records of both the main and the access-log backend.
Called once, on a worker’s way out: nothing on the per-record path
flushes, which is what lets a file:// target batch many records into
one write(2). Errors are printed rather than logged, because logging
from here would re-borrow the LOGGER cell this runs under.
pub fn log(&mut self, args: Arguments<'_>)
Sourcepub fn log_access(&mut self, log: RequestRecord<'_>) -> bool
pub fn log_access(&mut self, log: RequestRecord<'_>) -> bool
write an access log to the proper logging target
Protobuf access logs are written with a prost length delimiter before, and 2 empty bytes after
pub fn enabled(&self, meta: Metadata) -> bool
Auto Trait Implementations§
impl !Freeze for InnerLogger
impl RefUnwindSafe for InnerLogger
impl Send for InnerLogger
impl Sync for InnerLogger
impl Unpin for InnerLogger
impl UnsafeUnpin for InnerLogger
impl UnwindSafe for InnerLogger
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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