diff --git a/NLog.Web.AspNetCore/LayoutRenderers/IISInstanceNameLayoutRenderer.cs b/NLog.Web.AspNetCore/LayoutRenderers/IISInstanceNameLayoutRenderer.cs index ae660fd4..94e9b656 100644 --- a/NLog.Web.AspNetCore/LayoutRenderers/IISInstanceNameLayoutRenderer.cs +++ b/NLog.Web.AspNetCore/LayoutRenderers/IISInstanceNameLayoutRenderer.cs @@ -36,7 +36,7 @@ protected override void Append(StringBuilder builder, LogEventInfo logEvent) #if NETSTANDARD_1plus var env = ServiceLocator.ServiceProvider?.GetService(); - builder.Append(env?.EnvironmentName); + builder.Append(env?.ApplicationName); #else builder.Append(HostingEnvironment.SiteName);