0

When running express locally, I can see console.log/console.error output in the console. When running on a server, where is this information logged?

1 Answer 1

1

How is express running on your server?

If, for example, you are running it via pm2, pm2 will capture stdout and stderr and log it to a file(s). The details of where this will be logged are specific to the host process.

In the pm2 case, the logs default to ~/.pm2/logs

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.