Page 1 of 1
Logfile
Posted: Mon Mar 10, 2014 2:33 pm
by David44
Is it possible to log the blocked (or all) requests to a file? Users frequently only remember, that someting wasn't working but a few days later it is hard to reproduce.
Re: Logfile
Posted: Mon Mar 10, 2014 10:58 pm
by Thrawn
You can enable more logging by setting extensions.logging.enabled to true. However, this will go to the Error Console (or possibly Browser Console), rather than to a file.
A log of all blocked requests would soon grow ridiculously large.
Re: Logfile
Posted: Tue Mar 11, 2014 2:00 am
by barbaz
Re: Logfile
Posted: Tue Mar 11, 2014 9:47 am
by David44
Thrawn wrote:A log of all blocked requests would soon grow ridiculously large.
Yes, but diskspace is not the problem. With compression less than ever.
Do I understand correctly, only requests are logged and not the blocked requests? So it might be not so helpful as I wish.
If there's no built in capability or other ideas, maybe it's possible to merge the http-request-logger in noscript. After a quick look: the function openConsole seems to be the right place. But time is missing...
Re: Logfile
Posted: Tue Mar 11, 2014 3:58 pm
by barbaz
It will log all outgoing requests but not those that are blocked by nsIContentPolicy implementations which do their thing before that addon even sees the requests.
I think the only reliable way to log all blocked requests, would be to modify every single addon you got so that when they block a request, they send (via custom observer notifications) data about that request to some custom addon that writes all data it gets to a file. You would also have to re-apply your changes with every addon-update. Not something I'd want to do, but YMMV..