httproxy icon indicating copy to clipboard operation
httproxy copied to clipboard

Ignore URLs with certain extensions from logging

Open gr33ndata opened this issue 12 years ago • 3 comments

Modified HTTP Proxy, so now we can exclide URLs with some extensions from the logging. If a user need to exclude extensions, she should add the following to the configuration file:

[ignored-extensions] .jpg .css .jss .any_extension

gr33ndata avatar Nov 24 '12 16:11 gr33ndata

Wouldn't it be much better to just filter your log files by the url, to remove the static files (not by extension, but by prefix)?

deshipu avatar Nov 24 '12 19:11 deshipu

Hey there! Thanks for your contribution. However, I wonder what is the use case for the functionality you propose. No proxy implementation I know of allows for ignoring logging of certain requests.

ambv avatar Nov 24 '12 19:11 ambv

I am currently working on a HCI project, and want to log users activity via the proxy logs, so that's how the need started. But yeah, you are right, people can do the filtering in the log file later on. Not sure if you still find it a valid user care or no. Anyway, I am please to participate in the code, and thank you for the comments, and will sure keep an eye on the project in case any additions are needed

gr33ndata avatar Nov 24 '12 20:11 gr33ndata