-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
logging off for specific modules #26
Comments
Yes, exactly this is possible. |
nice, thanks for the clarification. |
so.. if I try using: with_str("info, rocket=off") I still see a bunch of output from rocket in the logfile:
if I use: with_str("mymodule") I don't see any output from rocket and only output from |
That definitely looks wrong. I‘ll need to debug. Thanks for the report!
Am 28.04.2019 um 05:07 schrieb Neill Bolton <[email protected]<mailto:[email protected]>>:
so.. I'm currently using:
with_str("info, rocket=off")
but I'm still seeing a bunch of output from rocket in the logfile:
INFO [rocket::rocket] 🔧 Configured for production.
INFO [rocket::rocket] address: ^[[1;49;39m0.0.0.0^[[0m
INFO [rocket::rocket] port: ^[[1;49;39m10000^[[0m
INFO [rocket::rocket] log: ^[[1;49;39moff^[[0m
INFO [rocket::rocket] workers: ^[[1;49;39m16^[[0m
INFO [rocket::rocket] secret key: ^[[1;49;39mprovided^[[0m
INFO [rocket::rocket] limits: ^[[1;49;39mforms = 32KiB^[[0m
INFO [rocket::rocket] keep-alive: ^[[1;49;39m5s^[[0m
INFO [rocket::rocket] tls: ^[[1;49;39mdisabled^[[0m
INFO [rocket::rocket] ^[[33m[extra]^[[0m template_dir: ^[[1;49;39m"templates"^[[0m
INFO [rocket::rocket] ^[[33m[extra]^[[0m databases: ^[[1;49;39m{ redis = { url = "redis://localhost" } }^[[0m
if I use:
with_str("mymodule")
I don't see any output from rocket and only output from mymodule. Any ideas?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#26 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ADASMOYAVAMP6GY7IL23OVDPSUBDDANCNFSM4HI3WGIA>.
|
Fixed with 0.11.5 which is available now on crates.io |
I'm now on 0.11.5 and using
|
Rocket uses the log crate in a pretty unusual way, by specifying the „target“ explicitly. The log crate should define the semantics of target more precisely. |
I really think that rocket overstretches the possibilities of the log crate. I doesn't seem to be a good idea that libraries choose to log to different targets. Nevertheless, there's a new flexi_logger version on master that should solve the issues with rocket for now. The fix has impact on the API for additional writers (which are addressed via the target info), so it is an alpha version of 0.12. I will need to merge some other stuff in and polish before I can publish on crates.io. |
Version 0.12.0 is now published and should work with rocket as expected! |
Is it possible to turn logging completely off for certain modules? Something like:
The text was updated successfully, but these errors were encountered: