You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//------------------------------------------------------------------------------------------------//// logging// from https://rust-lang-nursery.github.io/rust-cookbook/development_tools/debugging/config_log.html#include-timestamp-in-log-messages// and https://doc.servo.org/env_logger/struct.Builder.html#examples-2#[macro_use]externcrate log;// use chrono::Local;use env_logger::Builder;// use std::io::Write;// use log::LevelFilter;pubstructLogging;implLogging{pubfninit(){// e.g. export RUST_LOG='warn,osmgraphing::osm::pbf=debug'// -> first is global default// -> comma-separated `path::to::module=level`// where `path::to::module` is rooted in the name of the crate it was compiled for.Builder::from_env("RUST_LOG")// .format(|buf, record| {// writeln!(// buf,// "{} [{}] - {}",// Local::now().format("%Y-%m-%dT%H:%M:%S"),// record.level(),// record.args()// )// })// .filter(None, LevelFilter::Error).init();debug!("Initializing Logger has finished.");}}
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: