You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to output my exception detail in a JSON structure with the config being done in the NLog.config.
At the moment the, in the example below, the exception is being rendered as a string.
I had a look at https://github.com/NLog/NLog/wiki/JsonLayout#advanced-examples which shows that it can be done, and an example of doing it using the API, and it does mention 'This is also possible with the XML config.' but there is no example and I cannot get it working.
If you could provide me with an example of Nested JSON Layouts configured in the NLog.config that would be great.
Hi,
I'm trying to output my exception detail in a JSON structure with the config being done in the NLog.config.
At the moment the, in the example below, the exception is being rendered as a string.
I had a look at https://github.com/NLog/NLog/wiki/JsonLayout#advanced-examples which shows that it can be done, and an example of doing it using the API, and it does mention 'This is also possible with the XML config.' but there is no example and I cannot get it working.
If you could provide me with an example of Nested JSON Layouts configured in the NLog.config that would be great.
Many Thanks,
Lach
NLog version: 4.2.3
Platform: .Net 4.6.2
Current NLog config
The text was updated successfully, but these errors were encountered: