I am trying to add NLog as a provider to my logger factory in my startup.cs file, but I cannot add it. All the examples I've seen do this:
loggerFactory.AddNLog(new global::NLog.LogFactory());
I use:
"Microsoft.Framework.Logging": "1.0.0-beta2"
From what I can say in github examples etc., this no longer exists:
"Microsoft.Framework.Logging.NLog": "1.0.0-*"
So, I would like to know that it has been replaced ("NLog": "3.2.0.0"?), And what is the correct way to add the NLog provider to my boot file?
Thank!
user2095880
source
share