diff --git a/src/Shared/LayoutRenderers/AssemblyVersionLayoutRenderer.cs b/src/Shared/LayoutRenderers/AssemblyVersionLayoutRenderer.cs
index 67483ea6..e13b3cde 100644
--- a/src/Shared/LayoutRenderers/AssemblyVersionLayoutRenderer.cs
+++ b/src/Shared/LayoutRenderers/AssemblyVersionLayoutRenderer.cs
@@ -16,18 +16,17 @@ public class AssemblyVersionLayoutRenderer : NLog.LayoutRenderers.AssemblyVersio
{
#if !ASP_NET_CORE
///
- /// Support capture of Assembly-Version from active HttpContext
+ /// Support capture of Assembly-Version from active HttpContext ApplicationInstance
///
- public LayoutRenderer ThreadAgnostic => string.IsNullOrEmpty(Name) ? _threadAgnostic : null;
- private readonly LayoutRenderer _threadAgnostic = new ThreadIdLayoutRenderer();
+ public LayoutRenderer FixThreadAgnostic => string.IsNullOrEmpty(Name) ? _fixThreadAgnostic : null;
+ private readonly LayoutRenderer _fixThreadAgnostic = new ThreadIdLayoutRenderer();
#endif
///
- protected override void Append(StringBuilder builder, LogEventInfo logEvent)
+ protected override void InitializeLayoutRenderer()
{
- InternalLogger.Trace("Extending ${assembly-version} " + nameof(NLog.LayoutRenderers.AssemblyVersionLayoutRenderer) + " with NLog.Web implementation");
-
- base.Append(builder, logEvent);
+ InternalLogger.Debug("Extending ${assembly-version} " + nameof(NLog.LayoutRenderers.AssemblyVersionLayoutRenderer) + " with NLog.Web implementation");
+ base.InitializeLayoutRenderer();
}
///