pub struct LoggerConfig {
pub level: String,
pub format: String,
pub output: String,
pub file_path: PathBuf,
pub max_file_size_mb: u64,
pub max_files: u32,
pub rotate_daily: bool,
pub log_trades: bool,
pub log_orderbooks: bool,
pub log_connections: bool,
pub log_errors: bool,
pub log_performance: bool,
}Expand description
Logging configuration
Fields§
§level: StringLog level (trace, debug, info, warn, error)
format: StringLog format (json, text, compact)
output: StringOutput destination (stdout, stderr, file)
file_path: PathBufPath to log file when output is set to file
max_file_size_mb: u64Maximum log file size in megabytes before rotation
max_files: u32Maximum number of log files to keep
rotate_daily: boolWhether to rotate log files daily
log_trades: boolWhether to log trade data
log_orderbooks: boolWhether to log order book data
log_connections: boolWhether to log connection events
log_errors: boolWhether to log error events
log_performance: boolWhether to log performance metrics
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§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LoggerConfig
impl Debug for LoggerConfig
Source§impl<'de> Deserialize<'de> for LoggerConfig
impl<'de> Deserialize<'de> for LoggerConfig
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 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