How to view server side logs (from npm run dev)

From the default web preview (configured with command = ["npm" "run" "dev" "--" "--port" "$PORT" "--host" "0.0.0.0"]), how do I find debugging logs that are supposedly from the server side?

Actually as I’m typing this, I did a grep in /tmp and found this log file “/tmp/monospace.log”. So looks like I can achieve this in the terminal with:

tail -F /tmp/monospace.log

Let me know if this is (or not) the recommended approach.

If I’m not wrong, open your VSCode terminal, choose OUTPUT option, and then choose IDX which it’d show the server logs