We want to log the JavaScript on our Website. For that I am overwriting the log functionality with my own implementation.
On the server side we are using Log4Net for our logging. My idea now is to capture the log on the client side and send it to the server with ajax. How ever I don't want to send the Ajax request every time someone types log. So my idea was to catch all the logs and send ONE request after the call-stack ended up where it has began.
Is there an event or a way to detect when call-stack has "ended" ?