- 1 minutes to read

SeriLog, FAQ, Troubleshooting, Common Questions SeriLog, FAQ, troubleshooting, common questions Can I extract data from .NET Exception objects logged with LogError?

Can I extract data from .NET Exception objects logged with LogError?

Can I extract data from .NET Exception objects logged with LogError?

Yes—Nodinite adds Exceptions to Context automatically: When you log Exception using .LogError(exception, "message"), Nodinite serializes Exception to JSON, stores in Context with key "ExtendedProperties/1.0#Exception". Create [Search Field Expression][] using [Formula][] plugin: JsonPath('..Message', Context('ExtendedProperties/1.0#Exception')) extracts Exception.Message. Similarly extract StackTrace, InnerException.Message, custom Exception properties. Works with nested exceptions.



See all FAQs: [Troubleshooting Overview][]