Out of the office

2010-04-15 Thread harry . douglass
I will be out of the office starting 04/15/2010 and will not return until 04/19/2010. I will respond to your message upon my return. If you need immediate assistance, please contact Jim Snyder at (215) 585-6514. Thank you. The contents of this email are the property of PNC. If it was not add

RE: Possible to test log4net filters on certain logevent?

2010-04-15 Thread Walden H. Leverich
Werner, Loren's check of IsDebugEnabled is the accepted way to accomplish what you want. Beyond that though, if you're usage is like ours then most of the time (99.99% :-) you don't want the logging of those large objects at all, but every once in a while you do. Well, we accepte

Re: Possible to test log4net filters on certain logevent?

2010-04-15 Thread Loren Keagle
I think you can get halfway to your goal just by using the suggestions in the FAQ. If you only care to check the log level of your logger instance, and not the filter chains in the individual appenders, you can use the helper methods on the ILog interface. if (logger.IsDebugEnabled) { str

Re: Possible to test log4net filters on certain logevent?

2010-04-15 Thread ITemplate
Hi Loren, Thanks for your reply! Well there are a couple of reasons but as an example, we need to log special webservices where the request and responses are VERY large objects that log4net (or any other) can't serialize correct. We have our own serializer for that job. But at the same time, thes