logging-log4net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "LoyeMei (Closed) (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (LOG4NET-327) in AppenderSkeleton.Append should check next Filter while got a FilterDecision.Neutral
Date Mon, 26 Mar 2012 06:52:30 GMT

     [ https://issues.apache.org/jira/browse/LOG4NET-327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

LoyeMei closed LOG4NET-327.
---------------------------

       Resolution: Not A Problem
    Fix Version/s: 1.2.9

It is not a problem,I am wrong
                
> in AppenderSkeleton.Append should check next Filter while got a FilterDecision.Neutral
> --------------------------------------------------------------------------------------
>
>                 Key: LOG4NET-327
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-327
>             Project: Log4net
>          Issue Type: Bug
>          Components: Appenders
>    Affects Versions: 1.2.9
>            Reporter: LoyeMei
>              Labels: AppenderSkeleton.Append
>             Fix For: 1.2.9
>
>
> public void DoAppend(LoggingEvent loggingEvent) 
> {
>        ....................................
> 	while(f != null) 
> 	{
> 		switch(f.Decide(loggingEvent)) 
> 		{
> 			case FilterDecision.Deny: 
> 				return;		// Return without appending
> 			case FilterDecision.Accept:
> 				f = null;	// Break out of the loop
> 				break;
> 			case FilterDecision.Neutral:
> 				f = f.Next;	// Move to next filter
> 				break;                    //Error here ,It should be "continue" here
> 		}
> 	}
> 	...............		
> }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message