pub struct LogOptions { /* private fields */ }Expand description
Configuration for the logging session owned by an Runtime.
Implementations§
Source§impl LogOptions
impl LogOptions
Sourcepub fn directory(self, directory: impl Into<PathBuf>) -> Self
pub fn directory(self, directory: impl Into<PathBuf>) -> Self
Select the directory used when file output is enabled.
Sourcepub fn prefix(self, prefix: impl Into<String>) -> Self
pub fn prefix(self, prefix: impl Into<String>) -> Self
Select the safe filename prefix used when file output is enabled.
Sourcepub const fn minimum_level(self, minimum_level: LogLevel) -> Self
pub const fn minimum_level(self, minimum_level: LogLevel) -> Self
Set the minimum emitted severity.
Sourcepub const fn console_output(self, enabled: bool) -> Self
pub const fn console_output(self, enabled: bool) -> Self
Enable or disable synchronous standard-error output.
Sourcepub const fn file_output(self, enabled: bool) -> Self
pub const fn file_output(self, enabled: bool) -> Self
Enable or disable append-only dated file output.
Sourcepub const fn color_output(self, enabled: bool) -> Self
pub const fn color_output(self, enabled: bool) -> Self
Enable or disable ANSI severity colors on console output.
Trait Implementations§
Source§impl Clone for LogOptions
impl Clone for LogOptions
Source§impl Debug for LogOptions
impl Debug for LogOptions
Auto Trait Implementations§
impl Forget for LogOptions
impl Freeze for LogOptions
impl Move for LogOptions
impl RefUnwindSafe for LogOptions
impl Send for LogOptions
impl Sync for LogOptions
impl Unpin for LogOptions
impl UnsafeUnpin for LogOptions
impl UnwindSafe for LogOptions
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