diff --git a/src/LoggingExtension.cs b/src/LoggingExtension.cs index 939f0c7..e53820b 100644 --- a/src/LoggingExtension.cs +++ b/src/LoggingExtension.cs @@ -66,7 +66,7 @@ namespace Unity.Microsoft.Logging { context.Existing = null == context.ParentContext ? LoggerFactory.CreateLogger(context.OriginalBuildKey.Name ?? string.Empty) - : LoggerFactory.CreateLogger(context.ParentContext.BuildKey.Type); + : LoggerFactory.CreateLogger(context.ParentContext.Type); context.BuildComplete = true; }