Groups | Blog | Home
all groups > visual studio .net enterprise tools > may 2007 >

visual studio .net enterprise tools : Logging Application Block 2.0 failover to EventLog


MattM
5/22/2007 7:20:03 AM
Is there a way to configure the Logging Application Block so that errors are
sent to the database but if that fails the EventLog is used? I have both
EventLog and database logging working but both are always logged right now. I
can't figure out if I should be looking at the category sources, the filters,
the special sources, or the trace listeners to program a failover type
situation. In case it's not obvious, our goal is to log all errors to the
database but in the event of a problem with the database being unavailable we
Severin Meyer
7/21/2007 10:00:01 AM
In the currently available Enterprise Library 3.1, there is a special source
"NotProcessedTraceSource".
I have tested with a locked output file, and the logger has redirected the
output to the NotProcessedTraceSource.

Hope this helps.

[quoted text, click to view]
AddThis Social Bookmark Button