pub struct LogModuleConfig {
pub name: String,
pub level: LogLevel,
pub console: LogLevel,
pub file: bool,
pub file_name: Option<String>,
pub file_max_size: u64,
pub file_max_count: u32,
pub debug_info_flags: u32,
}
Fields§
§name: String
§level: LogLevel
§console: LogLevel
§file: bool
§file_name: Option<String>
§file_max_size: u64
§file_max_count: u32
§debug_info_flags: u32
Implementations§
Source§impl LogModuleConfig
impl LogModuleConfig
pub fn new_default(name: &str) -> Self
pub fn is_global_module(&self) -> bool
pub fn max_level(&self) -> LogLevel
pub fn set_level(&mut self, level: &str)
pub fn set_console(&mut self, level: &str)
pub fn set_file(&mut self, enable: bool)
pub fn set_file_max_size(&mut self, file_max_size: u64)
pub fn set_file_max_count(&mut self, file_max_count: u32)
pub fn set_debug_info_flags(&mut self, flags: u32)
pub fn get_debug_info_flags(&self) -> LogDebugInfoFlags
pub fn load(&mut self, node: &Table)
Trait Implementations§
Source§impl Clone for LogModuleConfig
impl Clone for LogModuleConfig
Source§fn clone(&self) -> LogModuleConfig
fn clone(&self) -> LogModuleConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for LogModuleConfig
impl RefUnwindSafe for LogModuleConfig
impl Send for LogModuleConfig
impl Sync for LogModuleConfig
impl Unpin for LogModuleConfig
impl UnwindSafe for LogModuleConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more