pub struct Log { /* private fields */ }Expand description
The log configuration section repr.
None values will not override current ones.
See terminal::set().
Implementations§
Source§impl Log
impl Log
Sourcepub fn empty() -> Log
pub fn empty() -> Log
Construct an log configuration section override segment
with everything set to None
Sourcepub fn file(self, file: String) -> Log
pub fn file(self, file: String) -> Log
The file to write the log to. Note, that, IME, it didn’t work.
Default: "bearlibterminal.log"
Sourcepub fn level(self, level: LogLevel) -> Log
pub fn level(self, level: LogLevel) -> Log
The minimal log level to print at.
Default: LogLevel::Error
Sourcepub fn mode(self, mode: LogMode) -> Log
pub fn mode(self, mode: LogMode) -> Log
How to write to the log file if one laready exists.
Default: LogMode::Truncate
Trait Implementations§
Source§impl ConfigPart for Log
impl ConfigPart for Log
fn to_config_str(&self) -> String
impl Eq for Log
impl StructuralPartialEq for Log
Auto Trait Implementations§
impl Freeze for Log
impl RefUnwindSafe for Log
impl Send for Log
impl Sync for Log
impl Unpin for Log
impl UnwindSafe for Log
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