Skip to content

Commit

Permalink
fix for all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
304NotModified committed Oct 7, 2017
1 parent c1ea835 commit 108b5f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion NLog.Web.AspNetCore/NLogStart.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
using NLog.Config;

Expand All @@ -10,7 +11,7 @@ public static class NLogStart
public static Logger InitLogger(string nlogConfig)
{
//register yourself
ConfigurationItemFactory.Default.RegisterItemsFromAssembly(typeof(AspNetExtensions).Assembly);
ConfigurationItemFactory.Default.RegisterItemsFromAssembly(typeof(AspNetExtensions).GetTypeInfo().Assembly);

LogManager.Configuration = new XmlLoggingConfiguration(nlogConfig);
var logger = LogManager.GetCurrentClassLogger();
Expand Down

0 comments on commit 108b5f3

Please sign in to comment.