MCPcopy Create free account
hub / github.com/evilsocket/cake / init_logging

Function init_logging

cake-mobile/src/lib.rs:136–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134}
135
136fn init_logging() {
137 #[cfg(target_os = "android")]
138 {
139 android_logger::init_once(
140 android_logger::Config::default()
141 .with_max_level(log::LevelFilter::Info)
142 .with_tag("cake-mobile"),
143 );
144 }
145 #[cfg(not(target_os = "android"))]
146 {
147 let _ = env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("info"))
148 .try_init();
149 }
150}
151
152// ---------------------------------------------------------------------------
153// GPU / backend detection

Callers 1

start_workerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected