pub struct LoggingSettings {
pub level: String,
pub format: String,
pub file: Option<PathBuf>,
pub connection_mode: ConnectionLogMode,
pub connection_log_file: Option<PathBuf>,
pub connection_log_db: Option<PathBuf>,
pub connection_events: ConnectionLogEvents,
pub anonymization: ConnectionLogAnonymization,
pub retention: ConnectionLogRetention,
pub log_connections: bool,
}Expand description
Logging settings
Fields§
§level: StringLog level (trace, debug, info, warn, error)
format: StringLog format (json or pretty)
file: Option<PathBuf>Log file path for application logs (none for stdout)
connection_mode: ConnectionLogModeConnection logging mode Set to “none” for complete ghost mode - no connection logging at all
connection_log_file: Option<PathBuf>Path for connection log file (when mode is “file” or “both”)
connection_log_db: Option<PathBuf>Path for connection log database (when mode is “database” or “both”)
connection_events: ConnectionLogEventsWhich events to log
anonymization: ConnectionLogAnonymizationAnonymization settings for logged data
retention: ConnectionLogRetentionRetention settings
log_connections: bool👎Deprecated: Use connection_mode instead
Enable connection logging (DEPRECATED: use connection_mode instead)
Trait Implementations§
Source§impl Clone for LoggingSettings
impl Clone for LoggingSettings
Source§fn clone(&self) -> LoggingSettings
fn clone(&self) -> LoggingSettings
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 LoggingSettings
impl Debug for LoggingSettings
Source§impl Default for LoggingSettings
impl Default for LoggingSettings
Source§impl<'de> Deserialize<'de> for LoggingSettings
impl<'de> Deserialize<'de> for LoggingSettings
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 LoggingSettings
impl RefUnwindSafe for LoggingSettings
impl Send for LoggingSettings
impl Sync for LoggingSettings
impl Unpin for LoggingSettings
impl UnwindSafe for LoggingSettings
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