Logging Notes
- Logging systems are fast nowadays, no need to use guards (
if isXXXEnabled
) - For meaningful logging, override
toString
in (data) objects - Check actual logs in production/test environments (!)
- Log levels:
API Request/Response info
Main Service entry/exit info
Downstream service call/return info
Inside methods debug
Utility classes debug/trace
Unrecoverable error error
Recoverable error warn