Code Coverage by Clover.NET

exception output

View: New views
3 Messages — Rating Filter:   Alert me  

exception output

by NLog Convert :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

The exception layout renderer doesn't seem to be working in NLog 0.9.5.0
and the usage described at:
http://sourceforge.net/mailarchive/message.php?msg_id=11111027

(We built the source with .NET 2.0, and signed the assembly.)

None of the properties are output using this format.  Is there a
different syntax I should be using?

By the way, ${stacktrace} does give a single line stack trace (method
names, no line numbers).  ${exception} doesn't output anything.  Is
there some other way I can get the exception message?

Thanks,

Tyler


---

Tyler Wilson
Sr. Engineer

Email: Tyler_Wilson@...
Office: 360 314 1853
Mobile: otherMobile
Fax: 360 314 1890

Xiotech Corporation
5701 SE Columbia WaySuite 200
Vancouver, WA 98661

www.xiotech.com : www.xiotech.com/demo : Toll-Free 866 472 6764


_______________________________________________
Nlog-list mailing list
Nlog-list@...
https://lists.sourceforge.net/lists/listinfo/nlog-list

Re: exception output

by Josh Korn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tyler:

I'm getting the exact same problem. Did you ever get a response to your post?

Regards
Josh

NLog Convert wrote:
Hi all,

The exception layout renderer doesn't seem to be working in NLog 0.9.5.0
and the usage described at:
http://sourceforge.net/mailarchive/message.php?msg_id=11111027

(We built the source with .NET 2.0, and signed the assembly.)

None of the properties are output using this format.  Is there a
different syntax I should be using?

By the way, ${stacktrace} does give a single line stack trace (method
names, no line numbers).  ${exception} doesn't output anything.  Is
there some other way I can get the exception message?

Thanks,

Tyler


---

Tyler Wilson
Sr. Engineer

Email: Tyler_Wilson@Xiotech.com
Office: 360 314 1853
Mobile: otherMobile
Fax: 360 314 1890

Xiotech Corporation
5701 SE Columbia WaySuite 200
Vancouver, WA 98661

www.xiotech.com : www.xiotech.com/demo : Toll-Free 866 472 6764


_______________________________________________
Nlog-list mailing list
Nlog-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nlog-list

Re: exception output

by NLog Convert :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Josh,

Yes, I was misusing the attribute.  The correct usage is:  

layout="${level} ${longdate} ${threadid} ${logger} - ${message} ${exception:format=message,stacktrace:separator=*}