openzeppelin_relayer/utils/
service_info_log.rs1use log::info;
3use std::env;
4
5pub fn log_service_info() {
7 let service_name = env!("CARGO_PKG_NAME");
8 let service_version = env!("CARGO_PKG_VERSION");
9
10 info!("=== OpenZeppelin Relayer Service Starting ===");
11 info!("đ Service: {} v{}", service_name, service_version);
12 info!("đĻ Rust Version: {}", env!("CARGO_PKG_RUST_VERSION"));
13
14 if let Ok(profile) = env::var("CARGO_PKG_PROFILE") {
16 info!("đ§ Build Profile: {}", profile);
17 }
18
19 info!("đģ Platform: {}", env::consts::OS);
21 info!("đģ Architecture: {}", env::consts::ARCH);
22
23 if let Ok(cwd) = env::current_dir() {
25 info!("đ Working Directory: {}", cwd.display());
26 }
27
28 if let Ok(rust_log) = env::var("RUST_LOG") {
30 info!("đ§ Log Level: {}", rust_log);
31 }
32
33 if let Ok(config_path) = env::var("CONFIG_PATH") {
34 info!("đ§ Config Path: {}", config_path);
35 }
36
37 info!(
39 "đ Started at: {}",
40 chrono::Utc::now().format("%Y-%m-%d %H:%M:%S UTC")
41 );
42
43 info!("âšī¸ Visit the Relayer documentation for more information https://docs.openzeppelin.com/relayer/");
45}