log4net SDK Reference |

# LevelMatchFilter Class

This is a very simple filter based on Level matching.

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

System.Object
log4net.Filter.FilterSkeleton
log4net.Filter.LevelMatchFilter

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

#### Thread Safety

This type is not safe for multithreaded operations.

#### Remarks

The filter admits two options LevelToMatch and AcceptOnMatch. If there is an exact match between the value of the LevelToMatch option 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 the Level does not match then the result will be Neutral.

#### Requirements

Namespace: log4net.Filter

Assembly: log4net (in log4net.dll)

#### See Also

LevelMatchFilter Members | log4net.Filter Namespace