-
Notifications
You must be signed in to change notification settings - Fork 165
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 5.3.8 no longer loads NLog.config, if it's a linked file. #1059
Comments
Hi! Thanks for opening your first issue here! Please make sure to follow the issue template - so we could help you better! |
Can you also include the contents of your Or even better attach minimal solution-project that reproduces the issue. |
Minimal repro here: https://github.com/erikbozic/nlog-repro Just change the version in Shared.csproj. |
Thank you for this very detailed bug-report. Have now released NLog.Web.AspNetCore ver. 5.3.14 |
Thank you for the lightning quick fix! |
Thank you for the confirmation, that it is now working. And also thank you for reporting this, much appreciated. Have now created a task #1056 for myself to make an unit-test to ensure the bug doesn't come again. |
NLog version: > 5.3.8
Platform: .NET8
Current NLog config
There are no logs, if I link the NLog.config file from another project like this:
It seems to behave the same as the already reported bug here: NLog/NLog#5045
If I add this it starts working:
LogManager.Setup().LoadConfigurationFromFile()
.This only happens with version 5.3.8 or higher, it still works on 5.3.7. I'm running this on Linux.
I've also enabled the internal logger.
With 5.3.7 I get:
After which it starts logging application logs.
However with 5.3.8 I get:
And never logs any application logs.
Hopefully that helps. If needed I can try and publish a repo to reproduce the issue.
The text was updated successfully, but these errors were encountered: