I have a next.js application running in an Azure container app.
The container app has a “log stream” feature. In this view I can see that the next.js application is starting up:
▲ Next.js 14.2.3
- Local: http://localhost:3000
- Network: http://0.0.0.0:3000
✓ Starting...
✓ Ready in 75ms
This looks almost identical to the output when I run locally.
After this I expect a lot of log entries from my own code. But nothing more shows up in the log. When I run locally, the logging from my own code is working fine.
I am simply using console.log(). I have also tried console.info(), console.error(). I found the next.js framework code that I believe logs the lines above. They seem to be using console.log().
Is my code running as a child process and do I have to do something actively to pipe the stdout and stderror so they will show up in the output?