Click here to Skip to main content
15,897,518 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questiondo not have step out option in debugger Pin
hassanmohamed9-Nov-08 5:36
hassanmohamed9-Nov-08 5:36 
AnswerRe: do not have step out option in debugger PinPopular
Christian Graus9-Nov-08 6:05
protectorChristian Graus9-Nov-08 6:05 
GeneralRe: do not have step out option in debugger Pin
hassanmohamed9-Nov-08 9:40
hassanmohamed9-Nov-08 9:40 
GeneralRe: do not have step out option in debugger Pin
Christian Graus9-Nov-08 9:47
protectorChristian Graus9-Nov-08 9:47 
AnswerRe: do not have step out option in debugger Pin
Guffa9-Nov-08 7:12
Guffa9-Nov-08 7:12 
QuestionHow do I refresh an UpdatePanel in a master page from a child page Pin
bluewavestrider9-Nov-08 4:48
bluewavestrider9-Nov-08 4:48 
QuestionGridview inside Formview Pin
TheEagle9-Nov-08 4:18
TheEagle9-Nov-08 4:18 
QuestionLog4Net AsyncAppender and ASP.Net [modified] Pin
fdbpro9-Nov-08 0:53
fdbpro9-Nov-08 0:53 
Hi,
I'm working on a solution to boost Log4Net performance in our ASP.Net web applications. I have found many posts about using Log4Net's "AsyncAppender". I made a sample web application to test this solution, but my test results shows that the log methods take double time to execute when I use the AsyncAppender.

Log4Net.config:

<br />
<appender name="AsyncAppender" <br />
          type="SampleWebApplication.Appender.AsyncAppender, SampleWebApplication"><br />
<br />
   <appender-ref ref="RollingLogFileAppender"/><br />
   <!-- <appender-ref ref="AsyncAppender"/> --><br />
</appender><br />
<br />
<root><br />
   <level value="ALL"/><br />
   <appender-ref ref="RollingLogFileAppender"/><br />
</root><br />
<br />


C# Code:
<br />
Stopwatch objTimer = null;<br />
objTimer.Reset();<br />
objTimer.Start();<br />
<br />
for (int n = 0; n <= 10000; n++)<br />
{<br />
   log.Debug("This is a debug message");<br />
}<br />
<br />
objTimer.Stop();<br />
Console.WriteLine("Log Ticks :{0}", objTimer.ElapsedTicks);<br />


Results:
Using "RollingLogFileAppender":
29,187,893,440 (ticks)-->9,122 (milisecond)
28,473,901,664 (ticks)-->8,898 (milisecond)
28,302,560,368 (ticks)-->8,845 (milisecond)
28,439,245,696 (ticks)-->8,888 (milisecond)

Using "AsyncAppender":
56,301,661,280 (ticks)-->17,595 (milisecond)
55,775,842,640 (ticks)-->17,431 (milisecond)
56,351,447,984 (ticks)-->17,611 (milisecond)

I'm using VS.Net 2008 and .Net 3.5 for this application.

Do you have any idea about this problem? Is there any other solution to call log methods asynchronously?

Regards,
   Farzad Badili

modified on Monday, November 10, 2008 8:13 AM

QuestionHow do i use from a proxy class? Pin
aref878-Nov-08 22:10
aref878-Nov-08 22:10 
AnswerRe: How do i use from a proxy class? Pin
Christian Graus9-Nov-08 2:38
protectorChristian Graus9-Nov-08 2:38 
QuestionSend Mail (Error) Pin
mehrdadc488-Nov-08 11:49
mehrdadc488-Nov-08 11:49 
AnswerRe: Send Mail (Error) Pin
Christian Graus9-Nov-08 2:36
protectorChristian Graus9-Nov-08 2:36 
Questionhow to design and develop a database driven website for personnel info? Pin
Member 31916418-Nov-08 8:26
Member 31916418-Nov-08 8:26 
AnswerRe: how to design and develop a database driven website for personnel info? Pin
Christian Graus8-Nov-08 8:36
protectorChristian Graus8-Nov-08 8:36 
AnswerRe: how to design and develop a database driven website for personnel info? Pin
Paul Conrad8-Nov-08 13:13
professionalPaul Conrad8-Nov-08 13:13 
GeneralRe: how to design and develop a database driven website for personnel info? Pin
Member 31916419-Nov-08 0:14
Member 31916419-Nov-08 0:14 
GeneralRe: how to design and develop a database driven website for personnel info? Pin
Christian Graus9-Nov-08 2:39
protectorChristian Graus9-Nov-08 2:39 
AnswerRe: how to design and develop a database driven website for personnel info? Pin
Jeremy Falcon9-Nov-08 10:23
professionalJeremy Falcon9-Nov-08 10:23 
Questionhow to show and hide datalist content? Pin
hardyyanto8-Nov-08 3:46
hardyyanto8-Nov-08 3:46 
AnswerRe: how to show and hide datalist content? Pin
Christian Graus8-Nov-08 8:38
protectorChristian Graus8-Nov-08 8:38 
GeneralRe: how to show and hide datalist content? Pin
hardyyanto9-Nov-08 7:09
hardyyanto9-Nov-08 7:09 
GeneralRe: how to show and hide datalist content? Pin
Christian Graus9-Nov-08 9:32
protectorChristian Graus9-Nov-08 9:32 
GeneralRe: how to show and hide datalist content? Pin
hardyyanto9-Nov-08 16:33
hardyyanto9-Nov-08 16:33 
QuestionA personnel/medical/dental info website Pin
Member 31916418-Nov-08 3:15
Member 31916418-Nov-08 3:15 
AnswerRe: A personnel/medical/dental info website Pin
Brij8-Nov-08 3:38
mentorBrij8-Nov-08 3:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.