github-actions
released this
14 Jan 16:30
·
32 commits
to refs/heads/develop
since this release
Summary
In this release we added support for structured logging of inner exceptions in the Logging utility.
This feature is available starting on version 1.6.3 of Logging
⭐ Thank you @joaope for the feature request
Include inner exceptions in error messages
Before
{
"exception": {
"type": "System.InvalidOperationException",
"message": "Parent exception message"
}
}
After
{
"exception": {
"type": "System.InvalidOperationException",
"message": "Parent exception message",
"inner_exception": {
"type": "System.ArgumentNullException",
"message": "Very important inner exception message"
}
}
}
Usage Example
Logger.LogError(
new InvalidOperationException("Parent message",
new ArgumentNullException("input", "Inner message")),
"Operation failed with {arg}",
12345
);
Changes
🔧 Maintenance
- chore: Add e2e tests (#692) by @hjgraca
- chore: Update e2e-tests.yml (#691) by @hjgraca
- chore: Add workflow call to e2e tests (#685) by @hjgraca
- chore: Add end-to-end tests (#684) by @hjgraca
- chore: Exception logging to include inner exceptions (#681) by @hjgraca