Skip to content

Update logging for tracing #892

Description

@ehuss

It looks like the compiler moved to the tracing crate. I think at a minimum, the section at https://rustc-dev-guide.rust-lang.org/compiler-debugging.html?highlight=log#getting-logging-output should be updated to mention that.

I don't actually know why it was changed, what the differences are, or what the motivation was. rust-lang/compiler-team#331 and rust-lang/rust#74726 don't really say. Is there anything I need to know about the differences? Are there any examples of when using spans or #[instrument] would be useful? Should messages use structured fields (and how or why is that useful)?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions