pub struct LoggingConfig {
pub log_requests: bool,
pub log_responses: bool,
pub log_errors: bool,
pub log_timing: bool,
pub max_body_size: usize,
pub success_level: LogLevel,
pub error_level: LogLevel,
}Expand description
Logging configuration for requests and responses
Fields§
§log_requests: boolEnable request logging
log_responses: boolEnable response logging
log_errors: boolEnable error logging
log_timing: boolEnable timing information
max_body_size: usizeMaximum body size to log (bytes)
success_level: LogLevelLog level for successful requests
error_level: LogLevelLog level for failed requests
Implementations§
Source§impl LoggingConfig
impl LoggingConfig
Sourcepub fn production() -> Self
pub fn production() -> Self
Production logging config (minimal logging)
Sourcepub fn development() -> Self
pub fn development() -> Self
Development logging config (verbose logging)
Trait Implementations§
Source§impl Clone for LoggingConfig
impl Clone for LoggingConfig
Source§fn clone(&self) -> LoggingConfig
fn clone(&self) -> LoggingConfig
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 LoggingConfig
impl Debug for LoggingConfig
Auto Trait Implementations§
impl Freeze for LoggingConfig
impl RefUnwindSafe for LoggingConfig
impl Send for LoggingConfig
impl Sync for LoggingConfig
impl Unpin for LoggingConfig
impl UnwindSafe for LoggingConfig
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