MCPcopy Create free account
hub / github.com/archlinux/alpm / init_logger

Function init_logger

alpm-package/src/package.rs:1192–1203  ·  view source on GitHub ↗

Initializes a global [`TermLogger`].

()

Source from the content-addressed store, hash-verified

1190
1191 /// Initializes a global [`TermLogger`].
1192 fn init_logger() {
1193 if TermLogger::init(
1194 LevelFilter::Debug,
1195 Config::default(),
1196 TerminalMode::Mixed,
1197 ColorChoice::Auto,
1198 )
1199 .is_err()
1200 {
1201 debug!("Not initializing another logger, as one is initialized already.");
1202 }
1203 }
1204
1205 /// Ensures that [`ExistingAbsoluteDir::new`] creates non-existing, absolute paths.
1206 #[test]

Callers 4

absolute_dir_new_failsFunction · 0.70

Calls 1

initFunction · 0.50

Tested by 4

absolute_dir_new_failsFunction · 0.56