| LoggingConfigurationAddRuleForAllLevels Method (String, String) |
Add a rule for all loglevels.
Namespace:
NLog.Config
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public void AddRuleForAllLevels(
string targetName,
string loggerNamePattern = "*"
)
Public Sub AddRuleForAllLevels (
targetName As String,
Optional loggerNamePattern As String = "*"
)
Dim instance As LoggingConfiguration
Dim targetName As String
Dim loggerNamePattern As String
instance.AddRuleForAllLevels(targetName,
loggerNamePattern)
member AddRuleForAllLevels :
targetName : string *
?loggerNamePattern : string
(* Defaults:
let _loggerNamePattern = defaultArg loggerNamePattern "*"
*)
-> unit
Parameters
- targetName
- 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