pub enum LogOutput {
Stdout,
Stderr,
File(PathBuf),
}Expand description
The log output.
This can be either stdout, stderr, or a file path.
The Deserialize implementation allows for the configuration file to
specify the output location as a string, which is then parsed into the
appropriate enum variant. If the string is not recognized to be either
stdout or stderr, it is assumed to be a file path.
Variants§
Implementations§
Source§impl LogOutput
impl LogOutput
Sourcepub fn as_make_writer(&self) -> BoxMakeWriter
pub fn as_make_writer(&self) -> BoxMakeWriter
Get a BoxMakeWriter for the log output.
This can be used to plug the log output into the tracing subscriber.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LogOutput
impl<'de> Deserialize<'de> for LogOutput
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LogOutput
impl StructuralPartialEq for LogOutput
Auto Trait Implementations§
impl Freeze for LogOutput
impl RefUnwindSafe for LogOutput
impl Send for LogOutput
impl Sync for LogOutput
impl Unpin for LogOutput
impl UnsafeUnpin for LogOutput
impl UnwindSafe for LogOutput
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