title: How to fetch get all console log , error , warning in text file if i click i a button
body: <p>I have a project which produces some warning, logs, error if anything goes wrong so I want to give the user a button where they can click and download console.log and save in text file. I can use extension I want to do in JavaScript and jQuery any of these ways. </p>
  
  <p>I want to get all this in a text file</p>
  
  <p><a href="https://i.stack.imgur.com/QYzdi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QYzdi.png" alt="enter image description here"></a></p>