hyperlane_log/log/
struct.rs

1/// Main configuration structure for log file output.
2///
3/// Controls where logs are stored and their maximum size limits.
4/// Use FileLogger::new() to create an instance with custom settings.
5#[derive(Clone)]
6pub struct FileLogger {
7    /// The directory path where log files will be stored.
8    pub(super) path: String,
9    /// The maximum allowed size (in bytes) for individual log files.
10    /// Set to 0 to disable logging.
11    pub(super) limit_file_size: usize,
12    /// Subdirectory name for trace logs.
13    pub(super) trace_dir: String,
14    /// Subdirectory name for debug logs.
15    pub(super) debug_dir: String,
16    /// Subdirectory name for info logs.
17    pub(super) info_dir: String,
18    /// Subdirectory name for warn logs.
19    pub(super) warn_dir: String,
20    /// Subdirectory name for error logs.
21    pub(super) error_dir: String,
22}