Click or drag to resize
LoggingConfigurationAddRuleForAllLevels Method (String, String)
Add a rule for alle loglevels.

Namespace: NLog.Config
Assembly: NLog (in NLog.dll) Version: 4.3.0
public void AddRuleForAllLevels(
	string targetName,
	string loggerNamePattern = "*"


Type: SystemString
Name of the target to be written when the rule matches.
loggerNamePattern (Optional)
Type: SystemString
Logger name pattern. It may include the '*' wildcard at the beginning, at the end or at both ends.
See Also