0

When you open browser console and right click anywhere on it, there's a button "save as", for saving all console logs, errors etc. to file.

I want to trigger the same function from javascript.
I know I could try to hijack console log, error, assert, table, debug, info, warn etc. functions, but that's basically high effort, brute-force, not future-proof way.

Is there a way to trigger aforementioned "save as" function by code?
I just want to have everything that is in console to be saved to txt file.

Haaldor
  • 3
  • 1
  • 2
  • 1
    you can only bind to console log and intercept calls made to it ex-post. You can't trigger the action you expected to, from javascript. Some further info here https://stackoverflow.com/questions/19846078/how-to-read-from-chromes-console-in-javascript – Diego De Vita Apr 28 '22 at 12:32

0 Answers0