{"action":"created","issue":{"url":"https://api.github.com/repos/NLog/NLog/issues/2219","repository_url":"https://api.github.com/repos/NLog/NLog","labels_url":"https://api.github.com/repos/NLog/NLog/issues/2219/labels{/name}","comments_url":"https://api.github.com/repos/NLog/NLog/issues/2219/comments","events_url":"https://api.github.com/repos/NLog/NLog/issues/2219/events","html_url":"https://github.com/NLog/NLog/issues/2219","id":244380975,"node_id":"MDU6SXNzdWUyNDQzODA5NzU=","number":2219,"title":"AppDomain.CurrentDomain.ProcessExit logging?","user":{"login":"kirsan31","id":17767561,"node_id":"MDQ6VXNlcjE3NzY3NTYx","avatar_url":"https://avatars0.githubusercontent.com/u/17767561?v=4","gravatar_id":"","url":"https://api.github.com/users/kirsan31","html_url":"https://github.com/kirsan31","followers_url":"https://api.github.com/users/kirsan31/followers","following_url":"https://api.github.com/users/kirsan31/following{/other_user}","gists_url":"https://api.github.com/users/kirsan31/gists{/gist_id}","starred_url":"https://api.github.com/users/kirsan31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirsan31/subscriptions","organizations_url":"https://api.github.com/users/kirsan31/orgs","repos_url":"https://api.github.com/users/kirsan31/repos","events_url":"https://api.github.com/users/kirsan31/events{/privacy}","received_events_url":"https://api.github.com/users/kirsan31/received_events","type":"User","site_admin":false},"labels":[{"id":13795225,"node_id":"MDU6TGFiZWwxMzc5NTIyNQ==","url":"https://api.github.com/repos/NLog/NLog/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-07-20T14:22:10Z","updated_at":"2018-09-11T18:33:47Z","closed_at":"2017-07-20T18:49:38Z","author_association":"NONE","body":"**Type** : Question / Bug \r\n\r\n**NLog version**: 4.4.11\r\n\r\n**Platform**: .Net 4.6.2\r\n**Current NLog config**: any log to File, for example default one.\r\n\r\nNLog  doesn't provide any output in `AppDomain.CurrentDomain.ProcessExit` handler. No errors (in internal log too), and no output. \r\nAny tips?"},"comment":{"url":"https://api.github.com/repos/NLog/NLog/issues/comments/420375509","html_url":"https://github.com/NLog/NLog/issues/2219#issuecomment-420375509","issue_url":"https://api.github.com/repos/NLog/NLog/issues/2219","id":420375509,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDM3NTUwOQ==","user":{"login":"xmedeko","id":1101801,"node_id":"MDQ6VXNlcjExMDE4MDE=","avatar_url":"https://avatars0.githubusercontent.com/u/1101801?v=4","gravatar_id":"","url":"https://api.github.com/users/xmedeko","html_url":"https://github.com/xmedeko","followers_url":"https://api.github.com/users/xmedeko/followers","following_url":"https://api.github.com/users/xmedeko/following{/other_user}","gists_url":"https://api.github.com/users/xmedeko/gists{/gist_id}","starred_url":"https://api.github.com/users/xmedeko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xmedeko/subscriptions","organizations_url":"https://api.github.com/users/xmedeko/orgs","repos_url":"https://api.github.com/users/xmedeko/repos","events_url":"https://api.github.com/users/xmedeko/events{/privacy}","received_events_url":"https://api.github.com/users/xmedeko/received_events","type":"User","site_admin":false},"created_at":"2018-09-11T18:33:47Z","updated_at":"2018-09-11T18:33:47Z","author_association":"NONE","body":"It's inconvenient to register own `ProcessExit` before any logging, because I one usually init `private static Logger log` as the first line in the class. I would prefer something like\r\n```c#\r\nLogManager.DisableAutoShutdown();\r\n AppDomain.CurrentDomain.ProcessExit += (s, e) =\r\n{\r\n    // ... own code\r\n    LogManager.Shutdown();\r\n};\r\n```"}}
{"actor":{"display_login":"xmedeko"}}