Skip to content

A bit confused about tracing-log v0.2.0 #2779

Answered by hawkw
frederikhors asked this question in Q&A
Discussion options

You must be logged in to vote

I don't think @davidbarsky's answer is correct. The API that was removed in tracing-log v0.2.0 was TraceLogger (which had been deprecated for a while), not LogTracer, which should still be present: https://docs.rs/tracing-log/latest/tracing_log/struct.LogTracer.html.

The issue here is that LogTracer API is feature flagged. Since you're depending on tracing-log with default-features = false, you need to add features = ["log-tracer"] for the API to be present. The reason that it worked with tracing-log v0.1.x is that some other crate in your dependency tree also depends on tracing-log v0.1 with that feature flag enabled, so it was enabled for you by that dependency.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@hawkw
Comment options

Answer selected by hawkw
@frederikhors
Comment options

@hawkw
Comment options

@frederikhors
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants