| LoggingRule Constructor (String, LogLevel, LogLevel, Target) |
Create a new
LoggingRule with a
minLevel and
maxLevel which writes to
target.
Namespace:
NLog.Config
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public LoggingRule(
string loggerNamePattern,
LogLevel minLevel,
LogLevel maxLevel,
Target target
)
Public Sub New (
loggerNamePattern As String,
minLevel As LogLevel,
maxLevel As LogLevel,
target As Target
)
Dim loggerNamePattern As String
Dim minLevel As LogLevel
Dim maxLevel As LogLevel
Dim target As Target
Dim instance As New LoggingRule(loggerNamePattern,
minLevel, maxLevel, target)
new :
loggerNamePattern : string *
minLevel : LogLevel *
maxLevel : LogLevel *
target : Target -> LoggingRule
Parameters
- loggerNamePattern
- Type: SystemString
Logger name pattern used for LoggerNamePattern. It may include one or more '*' or '?' wildcards at any position. - minLevel
- Type: NLogLogLevel
Minimum log level needed to trigger this rule. - maxLevel
- Type: NLogLogLevel
Maximum log level needed to trigger this rule. - target
- Type: NLog.TargetsTarget
Target to be written to when the rule matches.
See Also