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

Related issues

ErcinDedeoglu picture ErcinDedeoglu  路  3Comments

ranjan-2209 picture ranjan-2209  路  3Comments

Sam13 picture Sam13  路  3Comments

JustArchi picture JustArchi  路  3Comments

FaMouZx3 picture FaMouZx3  路  3Comments