Nlog: (minibug) Incorrect template for Warning message

Created on 23 Mar 2019  路  2Comments  路  Source: NLog/NLog

/NLog/LayoutRenderers/VariableLayoutRenderer.cs

InternalLogger.Warn("${{var={0}}} should be declared as <variable name=\"var_{0}\" value=\"...\" /> and used like this ${var_{{0}}}. Because of unsafe Layout={1}", Name, layout);

must be

${{var_{{0}}}}
bug documentation enhancement

Most helpful comment

Thank you for reporting. Have created #3191

All 2 comments

Thank you for reporting. Have created #3191

Thanks @lobster2012-user! This will be fixed in NLog 4.6.1 馃憤

Was this page helpful?
0 / 5 - 0 ratings