-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Logger Middleware - Allow certain endpoints to be excluded from logging #211
Comments
lets implement first option, as it is simplest. we can implement second option later if anyone would need it. would you provide PR? |
added |
Thanks for getting this done I just got a bit of time freed up and was going to look into it but you beat me to it. Thank you! |
Sorry for bringing up this again. I would like to stop actix from logging at all. I'm using
|
@neilyoung I don't know if simplelogger has the ability to filter out specific logs. With |
Hi @robjtede and thanks for the super quick reply. Yes, I have seen the env configuration to configure env_logger, but those don't apply. So I have to continue searching. I tried to
This was accepted, but in the end it just created empty "INFO" traces, whenever something happened on the network :) |
The logger middleware is specifically for logging request statuses as you might see in nginx or apache logs, for instance. So if you don't want these logs simply omit the If I've misunderstood @ me in the Gitter chat and we can continue there. |
Basically I added it, because I wanted to stop logging. It also traces (if app level is Unfortunately I can't use env_logger, which seems to not be able to log to file. Maybe I drop simplelog too in favour of log4j. |
I switched to log4rs. Problem solved. |
OK, it works, but it is very cumbersome to stop all parts of actix-web from jabbering. And there is a daily update to this list, because new loggers are popping up. Any idea how to stop that generally? Currently it looks like so: I'm switching all components I know off back to Error level. These are the currently discovered:
|
Constant health checks create a lot of clutter in logs. I would love a simple way to remove certain endpoints from the default Logger middleware.
Thoughts on how this could be done:
The text was updated successfully, but these errors were encountered: