This is the code for parsing the RUST_LOG variable and setting the logging flags in the crate map. Goes in `std::rt::logging`.