There is already several questions about capturing or redirecting console.log
:
- redirect Javascript syntax errors and console.log to somewhere else
- Capturing javascript console.log?
- Intercept calls to console.log in Chrome
- Can I extend the console object (for rerouting the logging) in javascript?
When we need to capture all the console messages (console.log, console.dir, console.table ...), is there a simple way to redirect all the functions without "overloading" each?
Edit: this question is about client-side JavaScript