NLog.Config.LoggingRule
Represents a logging rule. An equivalent of <logger /> configuration element.
Obsolete since too exotic feature with NLog v5.3.
Gets a collection of child rules to be evaluated when this rule matches.
Obsolete and replaced by FilterDefaultAction with NLog v5.
Default action when filters not matching
Default action if none of the filters match
Gets a collection of filters to be checked before writing to targets.
Gets or sets a value indicating whether to quit processing any following rules when this one matches.
Gets or sets the LogLevel whether to quit processing any following rules when lower severity and this one matches.
Gets the collection of log levels enabled by this rule.
Gets or sets logger name pattern.
Rule identifier to allow rule lookup
Gets a collection of targets that should be written to when this rule matches.
public LoggingRule()
Create an empty LoggingRule.
Create an empty LoggingRule.
Create a (disabled) LoggingRule. You should call EnableLoggingForLevel or EnableLoggingForLevels to enable logging.
Disables logging for a particular level.
Disables logging for particular levels between (included) minLevel and maxLevel.
Enables logging for a particular level.
Enables logging for a particular levels between (included) minLevel and maxLevel.
Checks whether the particular log level is enabled for this rule.
Checks whether given name matches the LoggerNamePattern.
Enables logging the levels between (included) minLevel and maxLevel. All the other levels will be disabled.