Logging
PronunciationLOG-ing
Definition
Writing messages about what the app is doing, so you can understand errors and behavior later.
Where you hear it
Debugging production problems.
Examples
Check the logs to see why the request failed.
Add more logging around the payment step.
The logging shows which user started the failed export, so we can follow up.
Common mistake
Logging passwords, tokens, or personal data. Logs are often widely accessible.
Don't confuse with
Logging records events about system execution for debugging, while monitoring tracks metrics and health over time to alert on issues.
Say it at work
- In a meeting or chat
Could we add some extra logging here so we can see what payload the API received?
- In an email or ticket
Please ensure that no sensitive user data is exposed in the new logging statements before merging this pull request.
Keep exploring
More in DevOps & Cloud