I’m using Logging + Caching (EntLib 5) in an ASP.NET application in the customer and I’ve some dobuts:
1. What is the best way to make Logging Asynchronous? I know the best way is MSMQ + MsmqDistributor Service + WCF with MSMQ Integration, but, Any other way easy an simple without to install MSMQ and Service?. In my application, traces will be disabled all
the times except for the error level. Only after an error is detected the customer will be enable them in Verbose mode in order to located the incident more easily and quick. I’m thinking to use “Task.Factory.StartNew(() => WriteMyMessage(logEntry)); ” What
do you think ?
2. The other question is about connection time out and when SQL Server is down. In this situation, What is the best way to implement a retry policy mainly for Caching between postbacks in ASP.NET pages? Any idea about how implement a quick check the status
connection ?
jlguerrero
Member
4 Points
3 Posts
Logging + Caching with EntLib 5
Mar 03, 2012 11:09 AM|LINK
<div class="container"> <div class="body">Hi all,
I’m using Logging + Caching (EntLib 5) in an ASP.NET application in the customer and I’ve some dobuts:
1. What is the best way to make Logging Asynchronous? I know the best way is MSMQ + MsmqDistributor Service + WCF with MSMQ Integration, but, Any other way easy an simple without to install MSMQ and Service?. In my application, traces will be disabled all the times except for the error level. Only after an error is detected the customer will be enable them in Verbose mode in order to located the incident more easily and quick. I’m thinking to use “Task.Factory.StartNew(() => WriteMyMessage(logEntry)); ” What do you think ?
2. The other question is about connection time out and when SQL Server is down. In this situation, What is the best way to implement a retry policy mainly for Caching between postbacks in ASP.NET pages? Any idea about how implement a quick check the status connection ?
Thanks so much in advance
Regards Juanlu
</div> </div>entlib