Class GEventEvaluator

    • Constructor Detail

      • GEventEvaluator

        public GEventEvaluator()
    • Method Detail

      • getExpression

        public java.lang.String getExpression()
      • setExpression

        public void setExpression​(java.lang.String expression)
      • evaluate

        public boolean evaluate​(ILoggingEvent event)
                         throws java.lang.NullPointerException,
                                EvaluationException
        Description copied from interface: EventEvaluator
        Evaluates whether the event passed as parameter matches some user-specified criteria.

        The Evaluator is free to evaluate the event as it pleases. In particular, the evaluation results may depend on previous events.

        Parameters:
        event - The event to evaluate
        Returns:
        true if there is a match, false otherwise.
        Throws:
        java.lang.NullPointerException - can be thrown in presence of null values
        EvaluationException - may be thrown during faulty evaluation