Skip to content

Commit

Permalink
Support TargetDefaultParameters and TargetDefaultWrapper (#4391)
Browse files Browse the repository at this point in the history
  • Loading branch information
snakefoot authored Apr 28, 2021
1 parent ec8e03e commit afbe0cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/NLog/Config/LoggingConfigurationParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,7 @@ private void ParseTargetsElement(ILoggingConfigurationElement targetsElement)
switch (targetElement.Name?.Trim().ToUpperInvariant())
{
case "DEFAULT-WRAPPER":
case "TARGETDEFAULTWRAPPER":
if (AssertNonEmptyValue(targetTypeName, "type", targetValueName, targetsElement.Name))
{
defaultWrapperElement = targetElement;
Expand All @@ -814,11 +815,11 @@ private void ParseTargetsElement(ILoggingConfigurationElement targetsElement)
break;

case "DEFAULT-TARGET-PARAMETERS":
case "TARGETDEFAULTPARAMETERS":
if (AssertNonEmptyValue(targetTypeName, "type", targetValueName, targetsElement.Name))
{
ParseDefaultTargetParameters(targetElement, targetTypeName, typeNameToDefaultTargetParameters);
}

break;

case "TARGET":
Expand Down

0 comments on commit afbe0cc

Please sign in to comment.