 | LoggingConfigurationAddRuleForAllLevels Method (Target, String) |
Add a rule for alle loglevels.
Namespace: NLog.ConfigAssembly: NLog (in NLog.dll) Version: 4.3.0
Syntaxpublic void AddRuleForAllLevels(
Target target,
string loggerNamePattern = "*"
)
Public Sub AddRuleForAllLevels (
target As Target,
Optional loggerNamePattern As String = "*"
)
Parameters
- target
- Type: NLog.TargetsTarget
Target to be written to 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