pub struct LogSetting {Show 14 fields
pub enable: bool,
pub with_target: bool,
pub with_file: bool,
pub with_thread_ids: bool,
pub with_thread_names: bool,
pub with_line_number: bool,
pub with_span_events: Vec<String>,
pub time_format: String,
pub log_level: LogLevel,
pub log_targets: Vec<String>,
pub log_writers: Vec<LogWriterType>,
pub log_dir: String,
pub log_name: Option<String>,
pub otel: OtelConfig,
}Fields§
§enable: bool§with_target: bool§with_file: bool§with_thread_ids: bool§with_thread_names: bool§with_line_number: bool§with_span_events: Vec<String>§time_format: String§log_level: LogLevel§log_targets: Vec<String>§log_writers: Vec<LogWriterType>§log_dir: String目录输出目录
log_name: Option<String>目标文件名,默认为
otel: OtelConfigImplementations§
Source§impl LogSetting
impl LogSetting
Trait Implementations§
Source§impl Clone for LogSetting
impl Clone for LogSetting
Source§impl Debug for LogSetting
impl Debug for LogSetting
Source§impl Default for LogSetting
impl Default for LogSetting
Source§impl<'de> Deserialize<'de> for LogSetting
impl<'de> Deserialize<'de> for LogSetting
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
Auto Trait Implementations§
impl Freeze for LogSetting
impl RefUnwindSafe for LogSetting
impl Send for LogSetting
impl Sync for LogSetting
impl Unpin for LogSetting
impl UnsafeUnpin for LogSetting
impl UnwindSafe for LogSetting
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