<p>My angular app is deployed on a Kubernetes container and the logs of the application on that container are scraped only if they are outputted as stdout or stderr. In my angular application, I am currently logging using console.log as I believe it's the same function <a href="https://stackoverflow.com/questions/4976466/difference-between-process-stdout-write-and-console-log-in-node-js#:%7E:text=process.-,stdout.,and%20adds%20a%20new%20line.">Question I referred</a> , want to know if this is correct or if stdout is something else?</p>

FatBoy98
<p>Short answer: no</p>
<p>The Angular app <strong>runs</strong> in the users browser. That means any logs using <code>console.log</code> will be logged on the user side in their browser and Kubernetes will not know about it.</p>
<p>The part that runs in Kubernetes is actually a static web server like Nginx or perhaps a NodeJS server that is just serving up the files.</p>
<p>If you have a backend service (like NodeJS) the logs in the server process will show up in stdout and stderr. Those can be picked up in Kubernetes.</p>
<p>To get the logs from Angular you would need to send them from the client to the backend over REST or something similar.</p>
