You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/source/logging/logging.md
+68-1
Original file line number
Diff line number
Diff line change
@@ -45,4 +45,71 @@ To start this example execute:
45
45
RUST_LOG=info cargo run
46
46
```
47
47
48
-
The full [example](https://github.com/scylladb/scylla-rust-driver/tree/main/examples/logging.rs) is available in the `examples` folder
48
+
The full [example](https://github.com/scylladb/scylla-rust-driver/tree/main/examples/logging.rs) is available in the `examples` folder
49
+
50
+
## 'log' compatibility
51
+
52
+
It may be surprising for some that viewing drivers logs using `log` ecosystem doesn't work out of the box despite `tracing` having a compatiblity layer
53
+
behind `log` / `log-always` feature flags.
54
+
55
+
The problem is that this compatibility using `log` feature (which is recommended for libraries) seems to not work well with `.with_current_subscriber()` / Tokio tasks.
0 commit comments