How EntLib Logging treat concurrency ?

Topics: Logging Application Block
Sep 20, 2010 at 6:42 PM

Hello everybody !

 

It's my first time using EntLib !

I'm using it to log all my system exceptions but i have a doubt.

 

I'm saving the exception in DB and XML file.

The XML file is in case of the DB goes down, but my fear is concurrency access to the text file.

 

Does EntLib know how handle this access ?


Thanks to all, and sorry me about my english !

Sep 21, 2010 at 8:26 AM

Hi,

Is what you mean by "concurrency access" is to allow you to continuously log an exception even in a 2 separate thread at the same time? If yes, there used to have some reported complications regarding this, like what is stated on this thread http://entlib.codeplex.com/Thread/View.aspx?ThreadId=10148. And the issue (http://entlib.codeplex.com/workitem/10278?ProjectName=entlib) logged for this has already been closed so I'm assuming it is already been resolved. I've tried to simulate this by continuously executing a 2 separate thread which does Exception Block logging in a flat file and so far I haven't encountered the said issue in the said thread. So to answer your question the answer is yes, entlib EHAB logging will take care of it.

While if this is not the case, try checking this other thread http://entlib.codeplex.com/Thread/View.aspx?ThreadId=17354. HTH

Gino Terrado
Global Technology and Solutions
Avanade, Inc.
entlib.support@avanade.com