LoggingRule Class |
Namespace: NLog.Config
The LoggingRule type exposes the following members.
Name | Description | |
---|---|---|
LoggingRule |
Create an empty LoggingRule.
| |
LoggingRule(String) |
Create an empty LoggingRule.
| |
LoggingRule(String, Target) |
Create a (disabled) LoggingRule. You should call EnableLoggingForLevel(LogLevel) or EnableLoggingForLevels(LogLevel, LogLevel) to enable logging.
| |
LoggingRule(String, LogLevel, Target) |
Create a new LoggingRule with a minLevel which writes to target.
| |
LoggingRule(String, LogLevel, LogLevel, Target) |
Create a new LoggingRule with a minLevel and maxLevel which writes to target.
|
Name | Description | |
---|---|---|
FilterDefaultAction |
Default action if none of the filters match
| |
Filters |
Gets a collection of filters to be checked before writing to targets.
| |
Final |
Gets or sets a value indicating whether to quit processing any following rules when this one matches.
| |
FinalMinLevel |
Gets or sets the LogLevel whether to quit processing any following rules when lower severity and this one matches.
| |
Levels |
Gets the collection of log levels enabled by this rule.
| |
LoggerNamePattern |
Gets or sets logger name pattern.
| |
RuleName |
Rule identifier to allow rule lookup
| |
Targets |
Gets a collection of targets that should be written to when this rule matches.
|
Name | Description | |
---|---|---|
DisableLoggingForLevel |
Disables logging for a particular level.
| |
DisableLoggingForLevels |
Disables logging for particular levels between (included) minLevel and maxLevel.
| |
EnableLoggingForLevel |
Enables logging for a particular level.
| |
EnableLoggingForLevels |
Enables logging for a particular levels between (included) minLevel and maxLevel.
| |
IsLoggingEnabledForLevel |
Checks whether the particular log level is enabled for this rule.
| |
NameMatches |
Checks whether given name matches the LoggerNamePattern.
| |
SetLoggingLevels |
Enables logging the levels between (included) minLevel and maxLevel. All the other levels will be disabled.
| |
ToString |
Returns a string representation of LoggingRule. Used for debugging.
(Overrides ObjectToString.) |