Skip to content

How can I add logging to a Rocket app? #2704

Answered by ELD
szabgab asked this question in Questions
Discussion options

You must be logged in to vote

Those macros are actually reexported without the underscore, so you can do the same thing with just rocket::info!("blah") rather than fully pathing the module.

That said, there's a longstanding issue to improve logging: #21

There have been a couple attempts to replace the current logging infrastructure with tracing to allow for more flexibility, but it's unfortunately never been merged, yet. I'd guess we get improved logging sometime in 0.7 or 0.8!

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by szabgab
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants