-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NLog Extension not working for 4.5.1 or 4.6.1 frameworks #40
Comments
It's a bit difficult as we don't know if you're using aspnet core or aspnet 4.5 if you are using net451. We I guess the problem is in finding NLog.Config. Could you tests with public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
{
//add NLog to aspnet5
loggerFactory.AddNLog();
//configure nlog.config in your project root
env.ConfigureNLog("nlog.config"); |
@304NotModified - Thanks - that worked. Appreciate the quick response. |
Thanks for the feedback! I think this library should inject some behavior into NLog, so we know it's .NET Core |
I am Getting Following error and application getting stopped automatically Using Asp.Net core SYSTEM.TYPEINTIALLIZATIONException in Micorsoft.AspNetCore.Server.Kestrel.dll |
That's an unexpected error. Would try to look at this, this week |
Cannot reproduce your error. I added an example for NET 4.6.1: #56 This issue is solved, I have created a new issue for the |
related #91 . Fixed in beta3 |
Is there a plan to get the NLog extension working if you are targeting the 4.5.1 or 4.6.1 frameworks?
Taking the example application the logging works - but if I change the project.json file to the following no logging is done:
The text was updated successfully, but these errors were encountered: