Skip to content

Is it possible to use the tracing crate within handlers? #1673

Discussion options

You must be logged in to vote

In 0.5 I understand that Rocket's logging infrastructure has been migrated to the tracing crate.

This unfortunately isn't the case yet. #21 and #1579 are the latest on moving over to tracing. For now, Rocket still uses log. We don't document how to tap in in hopes of being able to migrate to tracing in a non-breaking release. But in a pinch, using log macros will work and should continue to work even when we do migrate to tracing.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@harrytucker
Comment options

@SergioBenitez
Comment options

Answer selected by harrytucker

This comment has been minimized.

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