I'm trying to build an online code editor. in which i need to print the console logs in the web page when user executes their code.
i've tried:
console.log = function(msg){
alert('my .log hook received message - '+msg);
//add your logic here
}
but it does not seem to work properly. is there any console logs handler package to use?
i'm using VueJS.