pub struct LogConfig {
pub path: Option<String>,
pub directory: Option<String>,
pub level: (LevelFilter, Vec<TargetLevel>),
pub size: u64,
pub out_kind: Vec<OutKind>,
pub roll_count: u32,
pub time_format: Option<String>,
}Fields§
§path: Option<String>§directory: Option<String>§level: (LevelFilter, Vec<TargetLevel>)§size: u64§out_kind: Vec<OutKind>§roll_count: u32§time_format: Option<String>Implementations§
Source§impl LogConfig
impl LogConfig
pub fn get_path(&self) -> Option<&String>
pub fn get_directory(&self) -> Option<&String>
pub fn get_level(&self) -> &str
pub fn get_size(&self) -> u64
pub fn get_out_kind(&self) -> &Vec<OutKind>
pub fn get_roll_count(&self) -> u32
pub fn get_time_format(&self) -> Option<&String>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LogConfig
impl<'de> Deserialize<'de> for LogConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LogConfig
impl StructuralPartialEq 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 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