Using Logger Filter with Not Equal condition Log4net

Posted by Mubashar Ahmad on Stack Overflow See other posts from Stack Overflow or by Mubashar Ahmad
Published on 2010-04-05T10:47:06Z Indexed on 2010/04/05 10:53 UTC
Read the original article Hit count: 474

Filed under:

Dears

I am using log4net in my c# application i have different logger which insert text lines in my single log file.

But now i wanted to add a new logger which should not post log entries in the same file rather i should log in a different file so i configured a new fileAppender, After doing whatever i found on the net i am able to create a different file for my new logger but it echoes the same value in first log file too.

so please if anybody knows about the use of LogFilters so that i could add "Logger <> New logger " match in previously configured appender.

Regards Mubashar

© Stack Overflow or respective owner

Related posts about log4net