Enum bitbazaar::logging::LogTargetVariant
source · pub enum LogTargetVariant {
Stdout {},
File {
file_prefix: String,
dir: PathBuf,
},
Custom {
output: Output,
include_color: bool,
},
}Expand description
Specify where logs should be written to for a given logger.
Variants§
Stdout
Write to stdout:
File
Fields
Write to files. Where the string is the path to the log file excluding the end, e.g. “logs/my-program_” or “logs/”. ${date}.log will be appended to the end of this path, a new file will be created every day:
Custom
Fields
Write to a custom output.
Auto Trait Implementations§
impl !RefUnwindSafe for LogTargetVariant
impl Send for LogTargetVariant
impl !Sync for LogTargetVariant
impl Unpin for LogTargetVariant
impl !UnwindSafe for LogTargetVariant
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