pub struct LoggerConfig {
pub min_level: LogLevel,
pub send_notifications: bool,
pub structured_output: bool,
pub max_message_length: usize,
pub include_timestamps: bool,
pub include_logger_name: bool,
pub logger_name: Option<String>,
}Expand description
Logger configuration for the context
Fields§
§min_level: LogLevelMinimum log level to process
send_notifications: boolWhether to send notifications to client
structured_output: boolWhether to include structured output
max_message_length: usizeMaximum log message length
include_timestamps: boolWhether to include timestamps
include_logger_name: boolWhether to include logger name
logger_name: Option<String>Custom logger name
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