I have a web site with a lot of JavaScript that regularly seems to throw exceptions in production. I want to use something like NLog or Log4Net to log these exceptions, but the logger needs to run on the client as part of the JavaScript program and send log items to the server so they can be stored server side.
I would also like to log additional information (debug info, performance numbers). Would be great if I could easily switch loggers on or off.
Is there such a thing as an NLog for JavaScript that does all this? Any recommendations?