Although a very old question, the same question has been haunting me this last couple of weeks. Here is my little contribution to the hive-mind:
I found that for a lightweight client or client/server application using a simplistic, lightweight log viewer like log2console with NLogViewer target' filled with additional parameters fields made it both easy to use/setup and customize, while being readable and easy to find the info I looked for.
I used a UDP listener in the log viewer, and the following target definition in my NLog configuration:
Notes:
- The
is tab, which helps make it a bit more readable.
- The
is newline, since I couldn't use ${newline} in a layout renderer's parameter (an NLog limitation).
- In my example I use a very detailed layout, you can of course edit it however you like, use the $exception layout renderer doc page for reference.
Hope someone finds this helpful