pub struct AccessLogWriter { /* private fields */ }Expand description
Access log writer
Implementations§
Source§impl AccessLogWriter
impl AccessLogWriter
Sourcepub fn with_format<P: AsRef<Path>>(path: P, format: LogFormat) -> Result<Self>
pub fn with_format<P: AsRef<Path>>(path: P, format: LogFormat) -> Result<Self>
Create a new access log writer with custom format
Sourcepub fn write(&self, entry: &AccessLogEntry) -> Result<()>
pub fn write(&self, entry: &AccessLogEntry) -> Result<()>
Write a log entry
Sourcepub fn write_batch(&self, entries: &[AccessLogEntry]) -> Result<()>
pub fn write_batch(&self, entries: &[AccessLogEntry]) -> Result<()>
Write multiple log entries
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AccessLogWriter
impl RefUnwindSafe for AccessLogWriter
impl Send for AccessLogWriter
impl Sync for AccessLogWriter
impl Unpin for AccessLogWriter
impl UnsafeUnpin for AccessLogWriter
impl UnwindSafe for AccessLogWriter
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