log4net SDK Reference |

# LevelRangeFilter Class

This is a simple filter based on Level matching.

For a list of all members of this type, see LevelRangeFilter Members.

System.Object
log4net.Filter.FilterSkeleton
log4net.Filter.LevelRangeFilter

[Visual Basic]
Public Class LevelRangeFilter
Inherits FilterSkeleton
[C#]
public class LevelRangeFilter : FilterSkeleton

#### Thread Safety

This type is not safe for multithreaded operations.

#### Remarks

The filter admits three options LevelMin and LevelMax that determine the range of priorities that are matched, and AcceptOnMatch. If there is a match between the range of priorities and the Level of the LoggingEvent, then the Decide method returns Accept in case the AcceptOnMatch option value is set to `true`, if it is `false` then Deny is returned. If there is no match, Deny is returned.

#### Requirements

Namespace: log4net.Filter

Assembly: log4net (in log4net.dll)

#### See Also

LevelRangeFilter Members | log4net.Filter Namespace