Showing content from https://github.com/nlog/nlog/wiki/WhenContains-filter below:
WhenContains filter · NLog/NLog Wiki · GitHub
Matches when the calculated layout contains the specified substring. This filter is deprecated in favour of <when /> which is based on conditions.
Platforms Supported: All
<rules>
<logger ... >
<filters>
<whenContains layout="Layout" substring="String" action="Enum" ignoreCase="Boolean"/>
</filters>
</logger>
</rules>
- layout - Layout to be used to filter log messages. Layout Required.
- substring - Substring to be matched. Required.
- action - Action to be taken when filter matches. Required.
Possible values:
- Ignore - The message should not be logged.
- IgnoreFinal - The message should not be logged and processing should be finished.
- Log - The message should be logged.
- LogFinal - The message should be logged and processing should be finished.
- Neutral - The filter doesn't want to decide whether to log or discard the message.
- ignoreCase - Indicates whether to ignore case when comparing strings. Boolean Default: False
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4