LevelMatch
- LoggerFilter
LevelMatch 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 LoggerLevel | levelToMatch |
Methods summary
Modifier and Type | Method |
---|---|
public | setAcceptOnMatch ( boolean acceptOnMatch ) |
public | setLevelToMatch ( unknown level ) |
public integer | decide ( LoggingEvent event ) |
Properties in detail
-
acceptOnMatch
protected boolean acceptOnMatch
Indicates if this event should be accepted or denied on matchvar
boolean -
levelToMatch
protected LoggerLevel levelToMatch
The level, when to matchvar
LoggerLevel
Methods in detail
-
setAcceptOnMatch
public setAcceptOnMatch ( boolean acceptOnMatch )param
boolean acceptOnMatch -
setLevelToMatch
public setLevelToMatch ( unknown level )param
string l the level to match -
decide
Return the decision of this filter. Returns LoggerFilter::NEUTRAL if the LevelToMatch option is not set or if there is not match. Otherwise, if there is a match, then the returned decision is LoggerFilter::ACCEPT if the AcceptOnMatch property is set to true. The returned decision is LoggerFilter::DENY if the AcceptOnMatch property is set to false.