Closed isaacking5 closed 1 year ago
There is no vConsole.printLog()
method in v3.15.0.
Replace it with console.log()
will work:
console.error = function () {
var originalMessage = Array.prototype.join.call(arguments, ' ');
var modifiedMessage = 'Modified error message: ' + originalMessage;
console.log({
logType: 'error',
logMsg: modifiedMessage,
style: ''
});
};
Description
My use case is to modify the error message which are logged in consoles, there i need to highlight the error line number
I have explored and tried n number of ways like, overriding the console etc.. :point_down:
vConsole Version: 3.15.0 the latest version
Note : Iam using an given CDN link ('https://cdn.jsdelivr.net/npm/vconsole@latest/dist/vconsole.min.js')
But I failed to achieved the expected output
vConsole Version: 3.9.4
Note : Iam using an given CDN link on version 3.9.4
Here iam not getting an undefined log in console