• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //! Utilities that are not specific to a particular module
2 
3 pub mod owned_handle;
4 
5 #[cfg(test)]
6 pub mod task;
7 
8 /// Inits logging for Android
9 #[cfg(target_os = "android")]
init_logging()10 pub fn init_logging() {
11     android_logger::init_once(android_logger::Config::default().with_tag("bluetooth"));
12 }
13 
14 /// Inits logging for host
15 #[cfg(not(target_os = "android"))]
init_logging()16 pub fn init_logging() {
17     env_logger::Builder::new().parse_default_env().try_init().ok();
18 }
19