Im struggling to get console.log's to keep the correct line number and preform additional functionality.
var original = console.log
console.log = function() {
// Can run additional tasks
console.warn('additional stuff here');
// Wrong line number given
console.log.apply.call(original, console, arguments);
}
console.log('test')
I have gone though the following: A proper wrapper for console.log with correct line number?
However i only seem to be able to either keep the correct line or run an additional function from the answer provided but not both.
Thanks all :)