How to log own logging exceptions to Special Source, "Logging Errors & Warnings"

Nov 25, 2010 at 10:31 AM

Hi all,

When an error occurs while logging in "Logging Application Block" it logs them to the special source "Logging Errors & Warnings".
How can I log a logging error of my own logging logic to this special source?

Thanks! 

Nov 25, 2010 at 11:20 PM

You can't directly log to any special source.   LAB uses this for logging errors which occurred during the logging process.   Why not simply create your own category for logging your errors?

 

Sarah Urmeneta
Global Technologies and Solutions
Avanade, Inc.
entlib.support@avanade.com

Nov 26, 2010 at 7:41 AM
AvanadeSupport wrote:

You can't directly log to any special source.   LAB uses this for logging errors which occurred during the logging process.   Why not simply create your own category for logging your errors?

 

Sarah Urmeneta
Global Technologies and Solutions
Avanade, Inc.
entlib.support@avanade.com

You're right, I created an new category and attached it to the same listener as the logging errors & warnings.

Thanks for the reply