Example
- Middleware logging
- Loop logging
- Before
- After
Recommended enforcement
Open PRs
Remove or relocate the log statement in code.
Create tickets
Alert the team to review the logging pattern.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Log statements in middleware, loops, or high-frequency code
{"body": "Incoming request", "http.target": "/api/users", "service.name": "api-gateway"}
{"body": "Incoming request", "http.target": "/api/orders", "service.name": "api-gateway"}
{"body": "Incoming request", "http.target": "/api/products", "service.name": "api-gateway"}
{"body": "Incoming request", "http.target": "/api/users", "service.name": "api-gateway"}
{"body": "Processing item", "item_id": "1", "service.name": "batch-processor"}
{"body": "Processing item", "item_id": "2", "service.name": "batch-processor"}
{"body": "Processing item", "item_id": "3", "service.name": "batch-processor"}
// ... 10,000 more