Explain it simpler
When an app breaks, logs are its own account of what happened, like a flight recorder. Each Azure hosting service keeps them in its own spot. App Service has a live log stream, but for a custom container you must first switch on log saving or you will see nothing from your app. Container Apps keeps two kinds of logs: console logs are what your own program prints, and system logs are what the Azure platform says while starting, pulling and scaling your app. If your app never started, the system logs explain why. Azure Functions lists every run of a function with whether it worked, how long it took and what it logged. A good habit is to check in order: did it start, did my code fail, did something it called fail, or was it a permission or setting?
It is the last hour of a practice lab for Northgate Community College's cloud course, and three teams are stuck at once. Team one's App Service container shows a generic error page. Team two's new container app revision says failed, and its console log is completely empty. Team three's function runs on schedule but writes nothing they can find. The instructor, Ms. Alvarez, walks over and asks each team the same question: "Where are your logs?" Nobody is sure. Each platform keeps its logs in a different place, and the clock is ticking. Where would you look first on each one?
When something breaks, the first question is always where the logs are. Each compute platform in this exam has its own real-time and historical log sources, and knowing them saves time in labs and on the exam. The pattern is similar everywhere: a live stream for watching what happens right now, and a Log Analytics workspace or Application Insights for searching what happened earlier.
Keep reading for free
Create a free StudyToCert account to read the rest of this lesson: 8 more sections, 5 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.