M
M
miliko mikoyan2018-09-27 03:40:11
Node.js
miliko mikoyan, 2018-09-27 03:40:11

How to make node.js console.log open in browser console?

I'm new to node.js and I want console.log to open as js

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Clark Kent, 2018-09-27
@FlashManiac

I fully support the previous answer.
Let's figure it out.
The nodeJS application is the server .
The application in the browser is the client .
These are two different applications. And in order to get some information from one application to another, you need to establish a connection.
There are times when you need to look at the server log , but there is no access to a working computer, etc. Then it would be nice if there was an admin panel and you can see the server log there. Even from a mobile device.
You can use socket.io to establish a persistent connection between client and server and broadcast all logs to the browser console.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question