Created
June 21, 2021 19:17
-
-
Save jiimaho/d59e0c39e252c97537a543716b1e343b to your computer and use it in GitHub Desktop.
Good usage of fatal logging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try | |
{ | |
// notify customer about rejected card purchase | |
} | |
catch(Exception e) | |
{ | |
_logger.Fatal(e, "Failed to notify customer about rejected card purchase. Please ask Customer Care Center to call the customer and tell him/her about this to avoid degradation of reputation"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment