Rohit Tidke
Rohit Tidke

Reputation: 150

Unable to configure NLog Logging in MVC 6 ASP vnext starter project

Added to project.json file for logging:

"Microsoft.Framework.Logging.NLog":  "1.0.0-beta1"

The Framework.Logging.NLog depends internally upon NLog, which I tried installing via Nuget, project.json, Package console. It doesn't help.

Also wasn't able to find a way to configure NLog logging and a tutorial/guide to place the config sections of NLog.

Upvotes: 2

Views: 2284

Answers (1)

Suhas Joshi
Suhas Joshi

Reputation: 1060

NLog does not ship for CoreClr hence you need to define the dependency under aspnet50. Do look at the sample https://github.com/aspnet/Logging/blob/dev/samples/SampleApp/project.json

Upvotes: 1

Related Questions