1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
use simplelog::{ConfigBuilder, LevelFilter, SimpleLogger}; pub mod builder; pub mod commands; pub mod config; pub mod core; pub mod flag; pub mod fmt; pub mod infograph; pub mod lru; pub mod node; pub mod ops; pub mod ping; pub mod platform; pub mod repository; pub mod request; pub mod response; pub mod server; pub mod signals; pub mod watch; pub const JUPITER_VERSION: &'static str = "DEVELOPMENT-SNAPSHOT"; pub const JUPITER_REVISION: &'static str = "NO-REVISION"; pub fn init_logging() { static DATE_FORMAT: &str = "[%Y-%m-%dT%H:%M:%S%.3f]"; if let Err(error) = SimpleLogger::init( LevelFilter::Debug, ConfigBuilder::new() .set_time_format_str(DATE_FORMAT) .set_thread_level(LevelFilter::Trace) .set_target_level(LevelFilter::Error) .set_location_level(LevelFilter::Trace) .build(), ) { panic!("Failed to initialize logging system: {}", error); } }