logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Carlson" <bcarl...@Tier.com>
Subject Filters with AND/OR conditions.
Date Mon, 19 Apr 2010 21:07:38 GMT
I have 2 properties that I need to filter log messages based upon.  I
have setup an smtp appender for Error and Fatal log messages, but a
couple components didn't implement logging properly and are logging
errors when they don't exist.  That problem is being dealt with.  So I'm
trying to take care of those messages with filters.  What is the best
way to setup something like this:

 

If (Property1 = "111" && Property2 = "abc" )  || 

    (Property1 = "111" && Property2 = "bbb") ||

    (Property1 = "222" && Property2 = "def") ||

    (Property1 = "333" && Property2 = "xyz"))

Then

                Deny

Else

                Accept

 

 

Any help would be great.

 

Thanks,

Brian


Mime
View raw message