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.
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
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.
>
>
>
>
>
--- 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
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
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
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.
--- 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
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