0

It would be possible to download my client logs as file (let's say my console.log logs) using a button in a react app?

dev2020
  • 1
  • 2

1 Answers1

0

Javascript does not have a way to do this, therefore react does not. See this SO entry for more information: Stack Overflow Article How to Read from Chromes Console in Javascript. The only thing you can do, according to the linked article, is to setup a hook to log it elsewhere whenever you log. This may be helpful, and there are examples in the log below.

Dan Chase
  • 993
  • 7
  • 18