• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #[test]
default_init()2 fn default_init() {
3     assert!(logger::init(Default::default()));
4 
5     if cfg!(target_os = "android") {
6         // android_logger has default log level "off"
7         assert_eq!(log::max_level(), log::LevelFilter::Off);
8     } else {
9         // env_logger has default log level "error"
10         assert_eq!(log::max_level(), log::LevelFilter::Error);
11     }
12 }