Interface PaxFilter


  • public interface PaxFilter
    Framework library agnostic representation of a filter that may decide whether to process (pass) logging event or not.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ACCEPT
      The log event must be logged immediately without consulting with the remaining filters, if any, in the chain.
      static int DENY
      The log event must be dropped immediately without consulting with the remaining filters, if any, in the chain.
      static int NEUTRAL
      This filter is neutral with respect to the log event.
    • Field Detail

      • DENY

        static final int DENY
        The log event must be dropped immediately without consulting with the remaining filters, if any, in the chain.
        See Also:
        Constant Field Values
      • NEUTRAL

        static final int NEUTRAL
        This filter is neutral with respect to the log event. The remaining filters, if any, should be consulted for a final decision.
        See Also:
        Constant Field Values
      • ACCEPT

        static final int ACCEPT
        The log event must be logged immediately without consulting with the remaining filters, if any, in the chain.
        See Also:
        Constant Field Values
    • Method Detail

      • doFilter

        int doFilter​(PaxLoggingEvent event)

        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.

        Parameters:
        event - The LoggingPaxLoggingEventEvent to decide upon.
        Returns:
        decision The decision of the filter.