Log messages should include comprehensive contextual information to support debugging and system monitoring. This includes relevant identifiers, operation details, and state information that help developers understand what happened and why.
Log messages should include comprehensive contextual information to support debugging and system monitoring. This includes relevant identifiers, operation details, and state information that help developers understand what happened and why.
Key practices:
StateStoreProviderId[ storeId=$storeId, queryRunId=$queryRunId ]
Example of good contextual logging:
logInfo(log"Task thread trigger maintenance to close provider " +
log"${MDC(TASK_ID, taskId)} for ${MDC(STATE_STORE_PROVIDER_ID, providerId)} " +
log"- provider removed from loadedProviders")
Balance completeness with readability - include essential context but avoid excessive noise that makes logs harder to parse. Focus on information that would be valuable for debugging, monitoring, or understanding system behavior.
Enter the URL of a public GitHub repository