LogViewPlus Support

Line breaks in json message

https://www.logviewplus.com/forum/Topic367.aspx

By MagnusJ - 18 Nov 2019

Hi! When I mark a message I see the entire json message in the details box.That's great, but is there any way to display the line breaks as actual line breaks, instead of \n? If I right click on the message, choose copy cell, and then paste in a text editor I get the message in the right format, but that's a bit cumbersome.
By LogViewPlus Support - 19 Nov 2019

Hi Magnus,

Sorry - I am not clear on what you are trying to achieve.  Do you think you can send me a screenshot?

What you might try is changing the pretty print settings on the view:


Try the "Numbers & Symbols", JSON, and Unformatted settings.  See if one of these achieves the result you want.

If this works for you, then there is an application setting to automatically apply this change to the whole log file.  This setting is described here:
https://www.logviewplus.com/docs/syntax_highlights.html

Hope that helps,

Toby
By MagnusJ - 20 Nov 2019



Hi, and thanks for the reply.

Let me try to explain it better. Many of my log posts have line breaks. In box 1 (see image) it gets nicely formatted as separate lines, but the in box 2 the message is displayed on one line (separated with \r\n). Would it be possible to have separate lines in box 2 as well, or would that be in violation of the json specification? Maybe this problem have its source in how the logs are written, I'm using NLog.

Kind regards
Magnus J