diff --git a/Cargo.lock b/Cargo.lock index 17544fa67..32b3dffa2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -33,7 +33,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0483169d5fac0887f85c2fa8fecfe08669791712d8260de1a6ec30630a62932f" dependencies = [ "bytes", - "env_logger", + "env_logger 0.10.2", "lazy_static", "libc", "log", @@ -826,17 +826,37 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34aa73646ffb006b8f5147f3dc182bd4bcb190227ce861fc4a4844bf8e3cb2c0" +[[package]] +name = "env_filter" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4f2c92ceda6ceec50f43169f9ee8424fe2db276791afde7b2cd8bc084cb376ab" +dependencies = [ + "log", + "regex", +] + [[package]] name = "env_logger" version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4cd405aab171cb85d6735e5c8d9db038c17d3ca007a4d2c25f337935c3d90580" dependencies = [ - "humantime", - "is-terminal", "log", "regex", - "termcolor", +] + +[[package]] +name = "env_logger" +version = "0.11.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e13fa619b91fb2381732789fc5de83b45675e882f66623b7d8cb4f643017018d" +dependencies = [ + "anstream", + "anstyle", + "env_filter", + "humantime", + "log", ] [[package]] @@ -1727,7 +1747,7 @@ dependencies = [ "anyhow", "clap 4.5.20", "colored", - "env_logger", + "env_logger 0.11.5", "northstar-runtime", "tempfile", "zip", @@ -1739,7 +1759,7 @@ version = "0.9.3-pre" dependencies = [ "anyhow", "clap 4.5.20", - "env_logger", + "env_logger 0.11.5", "futures", "humantime", "log", @@ -1756,7 +1776,7 @@ name = "northstar-tests" version = "0.9.3-pre" dependencies = [ "anyhow", - "env_logger", + "env_logger 0.11.5", "futures", "lazy_static", "log", diff --git a/northstar-sextant/Cargo.toml b/northstar-sextant/Cargo.toml index 7cbd58344..a2f807bd1 100644 --- a/northstar-sextant/Cargo.toml +++ b/northstar-sextant/Cargo.toml @@ -12,7 +12,7 @@ rust-version.workspace = true anyhow = { version = "1.0.80", features = ["backtrace"] } clap = { version = "4.4.18", features = ["derive"] } colored = "2.1.0" -env_logger = "0.10.2" +env_logger = "0.11.3" northstar-runtime = { version = "^0.9.3-pre", path = "../northstar-runtime", features = ["npk"] } tempfile = "3.10.1" zip = { version = "2.1.3", default-features = false } diff --git a/northstar-stress/Cargo.toml b/northstar-stress/Cargo.toml index 218ada52a..e233d2206 100644 --- a/northstar-stress/Cargo.toml +++ b/northstar-stress/Cargo.toml @@ -11,7 +11,7 @@ rust-version.workspace = true [dependencies] anyhow = { version = "1.0.80", features = ["backtrace"] } clap = { version = "4.4.18", features = ["derive"] } -env_logger = "0.10.2" +env_logger = "0.11.3" futures = { version = "0.3.29", default-features = false } humantime = "2.1.0" log = "0.4.22" diff --git a/northstar-tests/Cargo.toml b/northstar-tests/Cargo.toml index 1d6e0a74c..c083a3eb6 100644 --- a/northstar-tests/Cargo.toml +++ b/northstar-tests/Cargo.toml @@ -10,7 +10,7 @@ rust-version.workspace = true [dependencies] anyhow = { version = "1.0.80", features = ["backtrace"] } -env_logger = "0.10.2" +env_logger = "0.11.3" futures = { version = "0.3.29", default-features = false } lazy_static = "1.4.0" log = "0.4.22" diff --git a/northstar-tests/src/logger.rs b/northstar-tests/src/logger.rs index ab10abcc1..6598a4fd1 100644 --- a/northstar-tests/src/logger.rs +++ b/northstar-tests/src/logger.rs @@ -37,7 +37,7 @@ pub fn init() { .format(|buf, record| { let elapsed = START.elapsed(); let timestamp = format!("{}.{:06}s", elapsed.as_secs(), elapsed.subsec_micros()); - let level = buf.default_styled_level(record.metadata().level()); + let level = buf.default_level_style(record.metadata().level()); let target = record .target() .strip_prefix("northstar_runtime::")