Skip to content

Load order precedence fix for config files issue #223#959

Closed
Suchitha-Joseph wants to merge 1 commit intoNLog:devfrom
Suchitha-Joseph:load-order-precedence-fix
Closed

Load order precedence fix for config files issue #223#959
Suchitha-Joseph wants to merge 1 commit intoNLog:devfrom
Suchitha-Joseph:load-order-precedence-fix

Conversation

@Suchitha-Joseph
Copy link
Copy Markdown

@Suchitha-Joseph Suchitha-Joseph commented Oct 16, 2015

The load order precedence of config files in current version of NLog has
a bug and does not follow the documentation. More specific config files,
e.g. program-name.exe.nlog, should be used before using NLog.config.The
method LogFactory.GetCandidateFileNames has been fixed to return the
files in the correct order. The unit test file ConfigFileLocatorTests.cs
has the test PrecedenceTest which has also been updated to match the
same ordering.

fixes #223


This change is Reviewable

The load order precedence of config files in current version of NLog has
a bug and does not follow the documentation. More specific config files,
e.g. program-name.exe.nlog, should be used before using NLog.config.The
method LogFactory.GetCandidateFileNames has been fixed to return the
files in the correct order. The unit test file ConfigFileLocatorTests.cs
has the test PrecedenceTest which has also been updated to match the
same ordering.
@304NotModified
Copy link
Copy Markdown
Member

Thanks! We have to check if this is a breaking change and thus should be merged with NLog 5.

@304NotModified 304NotModified added this to the 5.0 milestone Nov 5, 2015
@304NotModified 304NotModified added ready for merge breaking change Breaking API change (different to semantic change) labels Nov 19, 2015
@304NotModified 304NotModified modified the milestones: 5.0, 6.0 Aug 5, 2016
@304NotModified 304NotModified modified the milestones: 5.0 - OLD, 6.0 Dec 3, 2017
@304NotModified 304NotModified modified the milestones: 6.0, 5.0 (new) Jan 10, 2018
@304NotModified 304NotModified changed the base branch from master to dev August 14, 2018 20:27
@304NotModified
Copy link
Copy Markdown
Member

304NotModified commented May 6, 2019

@snakefoot could you please help me fixing this one?

@snakefoot
Copy link
Copy Markdown
Contributor

@304NotModified Created #3376

@304NotModified 304NotModified removed this from the 5.0 (new) milestone May 6, 2019
@304NotModified
Copy link
Copy Markdown
Member

Superseded by #3376

Thanks @Suchitha-Joseph

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change Breaking API change (different to semantic change) nlog-configuration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Load order (precedence) of config files is broken

3 participants