In my project I have console.log (and all other) overwritten in order to gather logs and periodically send them to the server. It is done by calling
window.co