onexception + newline = doesn't work

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

onexception + newline = doesn't work

Froggie
When I use
${onexception:${newline}:${exception:format=ToString,StackTrace:maxInnerExceptionLevel=10}}
the newline has no effect.

Is it a bug? How can i achive my goal?
Reply | Threaded
Open this post in threaded view
|

Re: onexception + newline = doesn't work

Jarek Kowalski
Administrator
I think you just need to remove colon (:) between ${newline} and ${exception}

Let me know if it works,

Jarek
NLog Blog
Reply | Threaded
Open this post in threaded view
|

Re: onexception + newline = doesn't work

Froggie
Hey cool!
Works like a charm.

Thank you!