tags:

views:

37

answers:

1

Hi,

The app I'm working on uses a library that generates a lot of INFO level messages I don't want to log. But the rest of the app and libraries produce INFO level messages I need to log.

How can I setup log4net so that all INFO messages are logged except for one logger that need to log only at WARN or above ? All messages need to be logged in the same files.

Julien

+1  A: 
<root>
  <level value="INFO" />
  <appender-ref ref="someappender" />
</root>
<logger name="AnotherLogger">
  <level value="WARN" />
</logger>
Preet Sangha
I don't know how I have missed this, thought I tried it but I guess I didn't. Anyway, thanks a lot, that works.
Julien A
Its always like that. Sometimes you look really hard and the obvious just alludes you.
Preet Sangha