pub enum LogOutputDest {
Stderr,
Stdout,
Path(PathBuf),
}Variants§
Stderr
Log to standard error
Stdout
Log to standard output
Path(PathBuf)
If a path with .log extension is provided, log to that file.
If a directory path is provided, log with file rotation enabled in that directory.
If the directory does not exist, it will be created.
Implementations§
Source§impl LogOutputDest
impl LogOutputDest
pub fn parse_from_str(val: &str) -> Result<Self, Error>
Trait Implementations§
Source§impl Clone for LogOutputDest
impl Clone for LogOutputDest
Source§fn clone(&self) -> LogOutputDest
fn clone(&self) -> LogOutputDest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LogOutputDest
impl Debug for LogOutputDest
Auto Trait Implementations§
impl Freeze for LogOutputDest
impl RefUnwindSafe for LogOutputDest
impl Send for LogOutputDest
impl Sync for LogOutputDest
impl Unpin for LogOutputDest
impl UnwindSafe for LogOutputDest
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