pub struct LogConfig {
pub log_args: LogArgs,
pub pipe: Option<Box<dyn Write + Send>>,
pub pipe_fd: Option<RawDescriptor>,
pub pipe_formatter: Option<Box<dyn Fn(&mut Formatter, &Record<'_>) -> Result<()> + Sync + Send>>,
}
Fields§
§log_args: LogArgs
Logging configuration arguments.
pipe: Option<Box<dyn Write + Send>>
If specified will output to given Sink
pipe_fd: Option<RawDescriptor>
descriptor to preserve on forks (intended to be used with pipe)
pipe_formatter: Option<Box<dyn Fn(&mut Formatter, &Record<'_>) -> Result<()> + Sync + Send>>
A formatter to use with the pipe. (Syslog has hardcoded format)
see module level documentation and env_logger
crate
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogConfig
impl !RefUnwindSafe for LogConfig
impl Send for LogConfig
impl !Sync for LogConfig
impl Unpin for LogConfig
impl !UnwindSafe for LogConfig
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