1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 05:13:29 +00:00

Convert log crate Records to tracing Events for desktop native. (#16827)

* Convert `log` crate Records to `tracing` Events for desktop native.

* sort deps

* use the feature on tracing_subscriber
This commit is contained in:
neuronull
2025-10-27 06:39:40 -07:00
committed by GitHub
parent b9f48d83b2
commit 9d849d2234
2 changed files with 5 additions and 1 deletions

View File

@@ -1051,6 +1051,10 @@ pub mod logging {
// overriding the default directive for matching targets.
.from_env_lossy();
// With the `tracing-log` feature enabled for the `tracing_subscriber`,
// the registry below will initialize a log compatibility layer, which allows
// the subscriber to consume log::Records as though they were tracing Events.
// https://docs.rs/tracing-subscriber/latest/tracing_subscriber/util/trait.SubscriberInitExt.html#method.init
tracing_subscriber::registry()
.with(filter)
.with(JsLayer)