Decides whether an event should be logged based on its filters.

C# | Visual Basic | Visual C++ |
public override FilterDecision Decide( LoggingEvent loggingEvent )
Public Overrides Function Decide ( _ loggingEvent As LoggingEvent _ ) As FilterDecision
public: virtual FilterDecision Decide( LoggingEvent^ loggingEvent ) override

- loggingEvent (LoggingEvent)
- The logging event.

The decision.

If the decision is Deny()()(), then the event will be dropped. If the decision is Neutral()()(), then the next filter, if any, will be invoked. If the decision is Accept()()() then the event will be logged without consulting with other filters in the chain.
This method is marked abstract and must be implemented in a subclass.