let file_appender_logger = rolling::never(
"logs", "example.log")
.with_max_level(tracing::Level::DEBUG);
let (nb_file_appender_logger, _nb_guard) = non_blocking::NonBlockingBuilder::default()
.finish(file_appender_logger);
error[E0277]: the trait bound `WithMaxLevel<RollingFileAppender>: std::io::Write` is not satisfied
Removing with_max_level helps, and all is good again.
Version
├── tracing v0.1.40 () ├── tracing-appender v0.2.3 │ └── tracing-subscriber v0.3.18 │ ├── tracing-core v0.1.32 () │ └── tracing-log v0.2.0 │ └── tracing-core v0.1.32 () ├── tracing-subscriber v0.3.18 ()
Platform
Darwin 22.6.0. Mac OS X.
Description
Removing with_max_level helps, and all is good again.