0

I want to find a way to capture a client browser console that is using my server, and save it to a file inside the server, is this possible using a shell script ?

2
  • You want to log the Console of a Browser that is remote? Or are you talking about Terminal=Console as in ssh? (but I see Browser) Your question needs clarification..or more focus..
    – Ron
    Commented May 13, 2020 at 12:44
  • No, i'm talking about the client when using a browser, i want to capture the console that appears when pressing "F12", save it to a file in the server and not in the client side.
    – logax
    Commented May 13, 2020 at 12:48

1 Answer 1

0

You cannot prohibit the local Browser from visualizing its Console contents.

You could use console.save to save the contents locally.

If you want to somehow send those contents to Your box, you could do this possibly with additional AJAX call.

3
  • Thank you for the answer, but, i'm looking for a shell/server side solution if possible.
    – logax
    Commented May 14, 2020 at 10:20
  • I would say it is impossible for you to grab Client side output, solely from the Server side. It just does not make sense in any viable way.
    – Ron
    Commented May 14, 2020 at 10:30
  • That's what i thought too, thank you for your answer.
    – logax
    Commented May 14, 2020 at 10:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .