{"action":"opened","issue":{"url":"https://api.github.com/repos/NLog/NLog/issues/1569","repository_url":"https://api.github.com/repos/NLog/NLog","labels_url":"https://api.github.com/repos/NLog/NLog/issues/1569/labels{/name}","comments_url":"https://api.github.com/repos/NLog/NLog/issues/1569/comments","events_url":"https://api.github.com/repos/NLog/NLog/issues/1569/events","html_url":"https://github.com/NLog/NLog/issues/1569","id":168041185,"number":1569,"title":"Configuration search sequence - ","user":{"login":"wilhelmmedetz","id":7532446,"avatar_url":"https://avatars.githubusercontent.com/u/7532446?v=3","gravatar_id":"","url":"https://api.github.com/users/wilhelmmedetz","html_url":"https://github.com/wilhelmmedetz","followers_url":"https://api.github.com/users/wilhelmmedetz/followers","following_url":"https://api.github.com/users/wilhelmmedetz/following{/other_user}","gists_url":"https://api.github.com/users/wilhelmmedetz/gists{/gist_id}","starred_url":"https://api.github.com/users/wilhelmmedetz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilhelmmedetz/subscriptions","organizations_url":"https://api.github.com/users/wilhelmmedetz/orgs","repos_url":"https://api.github.com/users/wilhelmmedetz/repos","events_url":"https://api.github.com/users/wilhelmmedetz/events{/privacy}","received_events_url":"https://api.github.com/users/wilhelmmedetz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-28T08:32:11Z","updated_at":"2016-07-28T08:32:11Z","closed_at":null,"body":"**Type**:\r\n\r\n- Feature request\r\n\r\n**NLog version**: 4.3.5\r\n\r\n**Platform**: .Net 4.5\r\n\r\nAccording to the documentation configurations are searched in the following sequence:\r\n\r\n1. standard application configuration file (usually applicationname.exe.config)\r\n2. applicationname.exe.nlog in application’s directory\r\n3. NLog.config in application’s directory\r\n4. NLog.dll.nlog in a directory where NLog.dll is located (only if NLog isn't installed in the GAC)\r\n\r\nBased on my tests, if both, an applicationname.exe.nlog file and an NLog.config file coexist in one directory, the application will use the NLOG.config file.\r\n\r\nIt would be desirable, that configurations are searched in the defined sequence, and if a configuration is found it is used and further configuration searching is aborted. In my specific case, if an applicationname.exe.nlog exists, the NLog.config file should not be read.\r\n\r\nThis would allow to deploy multiple exe files in one directory and to have applicationname.exe.nlog specific configurations together with a default NLog.config file (for those exe files with no applicationname.exe.nlog).\r\n\r\n"}}
{"actor":{"display_login":"wilhelmmedetz"}}