pub struct LoggingConfigBuilder { /* private fields */ }Expand description
Builder for LoggingConfig.
Implementations§
Source§impl LoggingConfigBuilder
impl LoggingConfigBuilder
pub fn enabled(self, enabled: bool) -> Self
pub fn level(self, level: impl Into<String>) -> Self
pub fn log_file(self, log_file: impl Into<String>) -> Self
pub fn to_console(self, to_console: bool) -> Self
pub fn file_size(self, file_size: u64) -> Self
pub fn max_file_count(self, max_file_count: usize) -> Self
pub fn build(self) -> LoggingConfig
Trait Implementations§
Source§impl Default for LoggingConfigBuilder
impl Default for LoggingConfigBuilder
Source§fn default() -> LoggingConfigBuilder
fn default() -> LoggingConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LoggingConfigBuilder
impl RefUnwindSafe for LoggingConfigBuilder
impl Send for LoggingConfigBuilder
impl Sync for LoggingConfigBuilder
impl Unpin for LoggingConfigBuilder
impl UnsafeUnpin for LoggingConfigBuilder
impl UnwindSafe for LoggingConfigBuilder
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