Click or drag to resize

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
)

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