You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request motivated by a concrete problem? Please describe.
I run a Rocket application in a Docker container. The application has a healthcheck endpoint that is queried multiple times per minute. This means that the logs are full of messages like these:
2021-12-09 08:18:57 INFO GET /healthcheck/: [rocket::server:203]
2021-12-09 08:18:57 INFO Matched: (healthcheck) GET /healthcheck [rocket::server:276]
2021-12-09 08:18:57 INFO Outcome: Success [rocket::server:286]
2021-12-09 08:18:57 INFO Response succeeded. [rocket::server:116]
Is there a way to filter request logs, for example by URL or by handler?
Why this feature can't or shouldn't live outside of Rocket
Logging is currently not configurable, I think. See #21.
Ideal Solution
It would be nice if certain URLs or handlers could be excluded from logging, either through the config file, or through a filter function that can be registered.
Is your feature request motivated by a concrete problem? Please describe.
I run a Rocket application in a Docker container. The application has a healthcheck endpoint that is queried multiple times per minute. This means that the logs are full of messages like these:
Is there a way to filter request logs, for example by URL or by handler?
Why this feature can't or shouldn't live outside of Rocket
Logging is currently not configurable, I think. See #21.
Ideal Solution
It would be nice if certain URLs or handlers could be excluded from logging, either through the config file, or through a filter function that can be registered.
Additional Context
Potentially related to #1098 and #1288.
The text was updated successfully, but these errors were encountered: