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

Function init_logger

alpm-package/tests/integration.rs:120–131  ·  view source on GitHub ↗

Initializes a global [`TermLogger`].

()

Source from the content-addressed store, hash-verified

118
119/// Initializes a global [`TermLogger`].
120fn init_logger() {
121 if TermLogger::init(
122 LevelFilter::Debug,
123 Config::default(),
124 TerminalMode::Mixed,
125 ColorChoice::Auto,
126 )
127 .is_err()
128 {
129 debug!("Not initializing another logger, as one is initialized already.");
130 }
131}
132
133/// Returns a default [`FileTimes`] struct with all times set to UNIX_EPOCH.
134fn default_filetimes() -> FileTimes {

Calls 1

initFunction · 0.50

Tested by

no test coverage detected