Resource · Guide or article
Logging
Covers how logs get collected and what is worth logging, from startup state to each incoming and outgoing request. Backend, DevOps and SRE candidates can use it to give concrete answers when asked how they would make a service debuggable in production.
Reviewed
Open the original: Logging (opens the original site in a new tab)Practice this topicOpens the practice interviewer in System design mode; choose a question there.
Add to a roadmap
Keep this resource with a roadmap you follow. It appears as your own extra resource; the roadmap's steps don't change and it doesn't count toward your tracked steps.
Source content: English
Logs are discrete events with the goal of helping engineers identify problem area(s) during failures.
PrepKit overview
PrepKit editors wrote and reviewed this overview from the source repository. It is not text from the resource itself.
- Suited to
- The source does not state a level
- Format
- Guide
What it covers
- Direct-write logging versus agent-based collection, with the memory, buffering and disk tradeoffs of each, and stdout as the container default
- Practices such as changing log levels without code changes or restarts, including the service version and sampling in the service rather than the logging system
- Logging an exception once, at the top-level handler, and skipping stack traces for expected 404 and 403 responses
- A what-to-log list: startup errors, warnings and config state, plus per-request URL with PII scrubbed, response code, latency and payload size
- Tools including Azure Monitor, Grafana Loki, the Elastic Stack and Fluent Bit
How to use it
PrepKit study advice, not a claim made by the source.
Write the log lines a service you have built should emit for one incoming request and one outgoing dependency call, with the fields the page suggests and PII removed. You should then be able to explain in an interview how you would find a slow dependency from those logs alone.
Scope and limitations
Team guidance, not interview material. Azure Monitor appears throughout, though the page itself says its direct-send mode is not meant for serious production use. There are no code or configuration samples.
Access and format
Free English web page in Microsoft's Code-With Engineering Playbook on microsoft.github.io (CC BY 4.0 repository).
Reviewed by PrepKit on Oct 2, 2026. Listing source commit: 016770e43d8a
Evidence behind this overview
- docs/observability/pillars/logging.md
Pages that include this
Get the PrepKit newsletter
Optional. You don't need it to use PrepKit.