pub struct Logger { /* private fields */ }Expand description
Logger used to record HTTP request information into a log file.
Implementations§
Source§impl Logger
impl Logger
Sourcepub fn new(path: &str) -> IoResult<Self>
pub fn new(path: &str) -> IoResult<Self>
Creates a new logger writing to the file at the given path.
If the file does not exist, it is created. Otherwise, logs are appended.
§Errors
Returns an error if the file cannot be opened or created.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Logger
impl RefUnwindSafe for Logger
impl Send for Logger
impl Sync for Logger
impl Unpin for Logger
impl UnwindSafe for Logger
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