By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,899 Members | 1,410 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,899 IT Pros & Developers. It's quick & easy.

Enterprise Library Logging Default Category

P: 1
I am using .NET 1.1 with Enterprise Library 1.0. I am using a Database Sink to write to Log tables and I have a Separate Custom Sink to write to a flat file.

What I am trying to do is use the Database Sink but if Database sink has some error, then Log should be written to File sink. To do this I set the DefaultCategory as General and that points to custom File sink.

So if an error happens at Database sink, then shouldn't Log be written to default category and sink ??

Do I have to write some code to implement writing to a file if an error occurs in Database Sink?

Database Sink writes error messages to Event Log in case of error which is ok.
I just want to serialize Log object and write it to file in event of error.

Let me know if you need more information. Any help is appreciated.

thanks
Sandy
Apr 17 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.