ccampbell/chromelogger

Suggestion: make ChromeLogger declaring itself to the server

cverond opened this issue · 4 comments

It would be nice if Chrome Logger could announce itself to the server using an header. Doing so I would be able to use specific Chrome Logger code on server side only if the extension is installed and enabled for a page and fall back to another logging method if it's not.
Thanks for your help!

I like this. I'll see what I can do. Injecting a header should be simple, but if I want to check if the extension is active then that needs to block until it can read from local storage.

I will have to see how that performs cause I don't want to slow down every request in your browser just to add a header.

+1 on this - the server should be able to detect whether ChromePHP/Logger is active, perhaps along the lines of HTTP_X_FIREPHP_VERSION

Any luck with this? I'd happily accept a slightly slower request during debugging :)

also would love this feature.