pub struct LoggerConfig {
pub format: LogFormat,
pub level: Level,
pub include_location: bool,
pub include_thread_id: bool,
pub static_fields: HashMap<String, String>,
}
Expand description
Logger configuration
Fields§
§format: LogFormat
Log format (terminal or json)
level: Level
Log level
include_location: bool
Include source code location
include_thread_id: bool
Include thread ID
static_fields: HashMap<String, String>
Static fields to include in all logs
Trait Implementations§
Source§impl Clone for LoggerConfig
impl Clone for LoggerConfig
Source§fn clone(&self) -> LoggerConfig
fn clone(&self) -> LoggerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LoggerConfig
impl Debug for LoggerConfig
Auto Trait Implementations§
impl Freeze for LoggerConfig
impl RefUnwindSafe for LoggerConfig
impl Send for LoggerConfig
impl Sync for LoggerConfig
impl Unpin for LoggerConfig
impl UnwindSafe for LoggerConfig
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