Add in MachineName as a Serilog property

This commit is contained in:
Warren
2018-08-21 12:48:06 +01:00
parent 9e996c68bb
commit 3baf5697e4

View File

@@ -28,6 +28,7 @@ namespace Umbraco.Core.Logging.SerilogExtensions
.Enrich.WithThreadId()
.Enrich.WithProperty("AppDomainId", AppDomain.CurrentDomain.Id)
.Enrich.WithProperty("AppDomainAppId", HttpRuntime.AppDomainAppId.ReplaceNonAlphanumericChars(string.Empty))
.Enrich.WithProperty("MachineName", Environment.MachineName)
.Enrich.With<Log4NetLevelMapperEnricher>();
return logConfig;