Re: [Nlog-bugs] [NLog] #70: logger.ErrorException doesn't seem to log the exception

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

Re: [Nlog-bugs] [NLog] #70: logger.ErrorException doesn't seem to log the exception

Jarek Kowalski
Administrator
You need to use ${exception} layout renderer to write various aspects of
your exception.

See this post.

http://sourceforge.net/mailarchive/message.php?msg_id=11111027

Jarek

----- Original Message -----
From: "NLog" <[hidden email]>
To: <[hidden email]>
Sent: Wednesday, May 24, 2006 5:29 PM
Subject: [Nlog-bugs] [NLog] #70: logger.ErrorException doesn't seem to log
the exception


> #70: logger.ErrorException doesn't seem to log the exception
> --------------------------------+-------------------------------------------
> Reporter:  [hidden email]  |       Owner:  jarek
>     Type:  defect              |      Status:  new
> Priority:  normal              |   Milestone:  NLog - ideas
> Component:  NLog                |     Version:
> Severity:  normal              |    Keywords:
> --------------------------------+-------------------------------------------
> Hi!
>
> Could it be that "logger.ErrorException("Here is an error.",ex)" is not
> writting the Exception to the logfile?
>
> Greetings!
> Thorsten
>
> --
> Ticket URL: <http://trac.sav.net/nlog/ticket/70>
> NLog <http://nlog.sourceforge.net/>
> NLog - A .NET Logging Library



-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Nlog-list mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nlog-list
NLog Blog
Reply | Threaded
Open this post in threaded view
|

Re: [Nlog-bugs] [NLog] #70: logger.ErrorException doesn't seem to log the exception

NLog Convert
Hi Jarek,

I'm trying to use the ${exception:format=message,StackTrace} as described but it is not working.

NLog version is 0.9.5.0   Compiled with .NET 2.0.

Is this syntax still correct?

Tyler
Reply | Threaded
Open this post in threaded view
|

Re: [Nlog-bugs] [NLog] #70: logger.ErrorException doesn't seem to log the exception

Jarek Kowalski
Administrator
See this one:

http://svn.nlog-project.org/repos/nlog/trunk/NLog/tests/NLog.UnitTests/LayoutRenderers/ExceptionTests.cs

This is a piece of test that passes on my machine and correctly logs the
exception information in various formats.

Jarek
----- Original Message -----
From: "NLog Convert" <[hidden email]>
To: <[hidden email]>
Sent: Wednesday, June 14, 2006 8:00 PM
Subject: Re: [Nlog-list] [Nlog-bugs] [NLog] #70: logger.ErrorException
doesn't seem to log the exception


>
> Hi Jarek,
>
> I'm trying to use the ${exception:format=message,StackTrace} as described
> but it is not working.
>
> NLog version is 0.9.5.0   Compiled with .NET 2.0.
>
> Is this syntax still correct?
>
> Tyler
> --
> View this message in context:
> http://www.nabble.com/Re%3A--Nlog-bugs---NLog---70%3A-logger.ErrorException-doesn%27t-seem-to-log-the-exception-t1676241s6167.html#a4869859
> Sent from the NLog-list forum at Nabble.com.
>
>
>
> _______________________________________________
> Nlog-list mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/nlog-list
>



_______________________________________________
Nlog-list mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nlog-list
NLog Blog
Reply | Threaded
Open this post in threaded view
|

Re: [Nlog-bugs] [NLog] #70: logger.ErrorException doesn't seem to log the exception

NLog Convert
In reply to this post by Jarek Kowalski
Never mind!  I had been passing the exception as an argument to the
"Error" method instead of "ErrorException".

Thanks for the quick reply anyway =)

Tyler




---

Tyler Wilson
Sr. Engineer

Email: [hidden email]
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

-----Original Message-----
From: Jaroslaw Kowalski [mailto:[hidden email]]
Sent: Wednesday, June 14, 2006 11:55 AM
To: Wilson, Tyler; [hidden email]
Subject: Re: [Nlog-list] [Nlog-bugs] [NLog] #70: logger.ErrorException
doesn't seem to log the exception

See this one:

http://svn.nlog-project.org/repos/nlog/trunk/NLog/tests/NLog.UnitTests/L
ayoutRenderers/ExceptionTests.cs

This is a piece of test that passes on my machine and correctly logs the

exception information in various formats.

Jarek
----- Original Message -----
From: "NLog Convert" <[hidden email]>
To: <[hidden email]>
Sent: Wednesday, June 14, 2006 8:00 PM
Subject: Re: [Nlog-list] [Nlog-bugs] [NLog] #70: logger.ErrorException
doesn't seem to log the exception


>
> Hi Jarek,
>
> I'm trying to use the ${exception:format=message,StackTrace} as
described

> but it is not working.
>
> NLog version is 0.9.5.0   Compiled with .NET 2.0.
>
> Is this syntax still correct?
>
> Tyler
> --
> View this message in context:
>
http://www.nabble.com/Re%3A--Nlog-bugs---NLog---70%3A-logger.ErrorExcept
ion-doesn%27t-seem-to-log-the-exception-t1676241s6167.html#a4869859
> Sent from the NLog-list forum at Nabble.com.
>
>
>
> _______________________________________________
> Nlog-list mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/nlog-list
>


_______________________________________________
Nlog-list mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nlog-list