RE: Programatically changing the logger for NHibernate

2005-12-13 Thread Nicko Cadell
TED] > Sent: 28 November 2005 16:57 > To: Log4NET User > Subject: Re: Programatically changing the logger for NHibernate > > And this did the trick. I tried to use the PropertyFilter > directly, but I couldn't come up with the property key that > represented LoggerName.

Re: Programatically changing the logger for NHibernate

2005-11-28 Thread Philip Nelson
And this did the trick. I tried to use the PropertyFilter directly, but I couldn't come up with the property key that represented LoggerName. I tried loggername, LoggerName, logger, Logger, log4net:logger and log4net:loggername class NHibernateFilter : StringMatchFilter { public override Filte

Re: Programatically changing the logger for NHibernate

2005-11-28 Thread Philip Nelson
I'll look into it, thanks. --- [EMAIL PROTECTED] wrote: > I would think that you could set up a filter to exclude the NHibernate > logs. Looking at the code however implies that you might have to write a > not assembly filter. > > > > >

RE: Programatically changing the logger for NHibernate

2005-11-28 Thread Philip Nelson
--- Göran Roseen <[EMAIL PROTECTED]> wrote: > Philip Nelson wrote: "And, I can use injection techniques to add logging > setup to my apps with minimal coding." > > This sounds...eh, interesting! Would you care to elaborate on that? Sure. As I said I was working with HttpRuntime. More specifica

Re: Programatically changing the logger for NHibernate

2005-11-28 Thread DWilliams
I would think that you could set up a filter to exclude the NHibernate logs. Looking at the code however implies that you might have to write a not assembly filter. Philip Nelson

RE: Programatically changing the logger for NHibernate

2005-11-28 Thread Göran Roseen
Philip Nelson wrote: "And, I can use injection techniques to add logging setup to my apps with minimal coding." This sounds...eh, interesting! Would you care to elaborate on that? /Göran Roseen

Re: Programatically changing the logger for NHibernate

2005-11-28 Thread Philip Nelson
Since replies have been light, and my reply to "why not use xml configuration" might have been a little abrupt, let me elaborate. I have been a log4net user almost since the first release. I have evangelized using it for the whole time, just like I evangelized log4j to my java clients before that.

Re: Programatically changing the logger for NHibernate

2005-11-25 Thread Philip Nelson
--- Matthew Brown <[EMAIL PROTECTED]> wrote: > Why are you not using a config file? That would be the (far) easiest way... #1 - many sites/services/apps all of which have to have the config file changed when a version update happens. Really annoying #2 - by putting in source, and by programatic

Re: Programatically changing the logger for NHibernate

2005-11-25 Thread Matthew Brown
Why are you not using a config file? That would be the (far) easiest way...On 11/25/05, Philip Nelson <[EMAIL PROTECTED] > wrote:I had added a configuration that built my loggers in code only and all was well (no xml!). Later though, I found out that NHibernate is doing something bad,logging except