I have several console.log commands distributed through my site.
Is it possible to override console.log using my own function? I want to configure the function so that it is registered only if a certain variable is set to true.
In the end, I still need to call the real .log console from this function.
Thanks Kevin
Kevin source
share