NLOG Exception Layout Renderer - What is the New Line separator

1 message Options
Embed this post
Permalink
jdw

NLOG Exception Layout Renderer - What is the New Line separator

Reply Threaded More More options
Print post
Permalink
I'm trying to change the format of the displayed exception using the layout renderer so that I get a new line between the Type,Message and Exception.
My config file looks like this, but I'm not sure what to put for the separator. (on Windows)

 <target name="file" xsi:type="File" fileName="${basedir}/SdefTests.log"
            layout="${date} [${level}] - ${message} ${exception:format=Type,Message,ToString:separator=\n}"/>

I am using  ${newline}  elsewhere which works but this can't be used as part of the exception.

Any advice would be appreciated.
Thanks
Jonathan