| LoggingRule Constructor (String, LogLevel, Target) |
Create a new
LoggingRule with a
minLevel which writes to
target.
Namespace:
NLog.Config
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public LoggingRule(
string loggerNamePattern,
LogLevel minLevel,
Target target
)
Public Sub New (
loggerNamePattern As String,
minLevel As LogLevel,
target As Target
)
Dim loggerNamePattern As String
Dim minLevel As LogLevel
Dim target As Target
Dim instance As New LoggingRule(loggerNamePattern,
minLevel, target)
new :
loggerNamePattern : string *
minLevel : 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. - target
- Type: NLog.TargetsTarget
Target to be written to when the rule matches.
See Also