I'm surprised I haven't been able to find an answer to this, but how do I get NLog to write JSON formatted messages in a pretty format, instead of the default one-line version?
Is there a simple setting somewhere or do I need to write a custom renderer?
Basically instead of
{ "date": "2018-11-18 14:21:45.0671", "level": "INFO", "message": "Some message" }
I'd like
{
"date": "2018-11-18 14:21:45.0671",
"level": "INFO",
"message": "Some message"
}
JToken.Parse(rawJsonString).ToString()
– Agnew