maoyuan121 / elmah

Automatically exported from code.google.com/p/elmah
Apache License 2.0
0 stars 0 forks source link

Using Elmah for general-purpose logging #93

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What about using Elmah for general-purpose logging?

I know that this can be done using something like this...

Elmah.ErrorSignal.FromCurrentContext().Raise(new 
System.ApplicationException("test"));

...or one could simply do this...

throw new System.ApplicationException("test");

...but what is the overhead of logging that way?

Calling Elmah in that way causes and Exception to be thrown.

Exceptions are rumored to be "very expensive" (though I have not seen 
suchissues in my apps).

What do you think?

Original issue reported on code.google.com by mkamo...@gmail.com on 30 Apr 2009 at 4:01

GoogleCodeExporter commented 9 years ago
I think this has more a nature of a question so it would be more appropriate to 
post
it to the general discussion group (http://groups.google.com/group/elmah) where 
it
can be discussed rather than being reported as an issue here.

Original comment by azizatif on 30 Apr 2009 at 5:48