openzeppelin_relayer/constants/logging.rs
1//! Logging configuration constants
2
3/// Default maximum log file size in bytes (1GB)
4pub const DEFAULT_MAX_LOG_FILE_SIZE: u64 = 1_073_741_824;
5
6/// Default log level when not specified
7pub const DEFAULT_LOG_LEVEL: &str = "info";
8
9/// Default log format when not specified
10pub const DEFAULT_LOG_FORMAT: &str = "compact";
11
12/// Default log mode when not specified
13pub const DEFAULT_LOG_MODE: &str = "stdout";
14
15/// Default log directory for file logging
16pub const DEFAULT_LOG_DIR: &str = "./logs";
17
18/// Default log directory when running in Docker
19pub const DOCKER_LOG_DIR: &str = "logs/";
20
21/// Log file name
22pub const LOG_FILE_NAME: &str = "relayer.log";