pub enum Output {
Stdout,
File(PathBuf),
Both(PathBuf),
}Expand description
Where log lines are written.
Variants§
Stdout
Standard output only. This is the default.
File(PathBuf)
The given file only. Created if missing, appended otherwise.
Both(PathBuf)
Both standard output and the given file.
ANSI colours are kept on stdout but stripped from the file, so the on-disk log stays free of escape codes.
Trait Implementations§
impl Eq for Output
impl StructuralPartialEq for Output
Auto Trait Implementations§
impl Freeze for Output
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnsafeUnpin for Output
impl UnwindSafe for Output
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