appender: expected a Fn<()>
closure, found NonBlocking
#2666
Closed
rminderhoud
started this conversation in
General
Replies: 1 comment
-
Hmm I was able to make it work by passing a closure instead, not sure why that works compared to examples: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all, I'm stuck on a tricky problem and could use some insights. I am using
tracing-appender
from commit0114ec1
to get access to the newRollingFileAppender
builder. Here is my usage for writing logs to a file and to stdout using two different layers:However, layer doesn't seem to like taking
NonBlocking
as a writer:I only had this issue when I upgraded to a new commit rather than using the published crate so I suspect something must have changed but I'm completed stumped as to what could have? I've read through the code as much as I could and I wasn't able to solve the issue.
Beta Was this translation helpful? Give feedback.
All reactions