pub struct LogConfig {
pub max_line_length: usize,
pub max_line_bytes: usize,
pub stdout_info: bool,
pub stderr_warn: bool,
}Expand description
Configuration for subprocess output logging.
§Also
SubprocessBackendConfigcarriesLogConfigas a field.log_streamasync function that reads + truncates + emits lines.
Fields§
§max_line_length: usizeMax line length (in Unicode chars) before truncation of the emitted line.
max_line_bytes: usizeHard byte cap per line; bytes past it are drained until next \n.
stdout_info: boolLog stdout at INFO level (false = DEBUG).
stderr_warn: boolLog stderr at WARN level (false = DEBUG).
Trait Implementations§
impl Copy for LogConfig
Auto Trait Implementations§
impl Freeze for LogConfig
impl RefUnwindSafe for LogConfig
impl Send for LogConfig
impl Sync for LogConfig
impl Unpin for LogConfig
impl UnsafeUnpin 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