n2n Page Rocket 1 API

n2n\log4php\filter\string

­String­Match

StringMatch extends LoggerFilter
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Property summary

Modifier and Type Property
protected boolean acceptOnMatch
protected string stringToMatch

Methods summary

Modifier and Type Method
public setAcceptOnMatch ( mixed acceptOnMatch )
public setStringToMatch ( unknown string )
public integer decide ( LoggingEvent event )

Properties in detail

  • acceptOnMatch

    protected ­ ­ boolean ­ acceptOnMatch
    var
    boolean
  • stringToMatch

    protected ­ ­ string ­ stringToMatch
    var
    string

Methods in detail

  • setAcceptOnMatch

    public setAcceptOnMatch ( mixed acceptOnMatch )
    param
    mixed acceptOnMatch a boolean or a string ('true' or 'false')
  • setStringToMatch

    public setStringToMatch ( unknown string )
    param
    string s the string to match
  • decide

    integer public decide ( LoggingEvent event )
    return
    integer