AspNetCoreNlog icon indicating copy to clipboard operation
AspNetCoreNlog copied to clipboard

NLog not working in Asp.net Core2.1

Open vankhanhpr opened this issue 4 years ago • 5 comments

Hi, I used Nlog in my project (Asp.net Core 2.1) so it not working. Is NLog supported for ASP .NET CORE 2.1? . Can you help me?

vankhanhpr avatar Mar 16 '20 14:03 vankhanhpr

My pj: https://github.com/vankhanhpr/SalaryTest.git

vankhanhpr avatar Mar 16 '20 15:03 vankhanhpr

Make sure to change File-properties for NLog.config-file to Copy Always to output.

See also: https://github.com/NLog/NLog/wiki/Logging-troubleshooting

snakefoot avatar Mar 16 '20 15:03 snakefoot

Make sure to change File-properties for NLog.config-file to Copy Always to output.

See also: https://github.com/NLog/NLog/wiki/Logging-troubleshooting

Thank you, I will try it.

vankhanhpr avatar Mar 16 '20 16:03 vankhanhpr

Hi @vankhanhpr I updated this repo to use 3.1 If you look in the history, the version before the update, with the nuget packages used will work with 2.1.

Greetings Damien

damienbod avatar Mar 17 '20 06:03 damienbod

Thank you so much!

vankhanhpr avatar Mar 17 '20 08:03 vankhanhpr