{"action":"created","issue":{"url":"https://api.github.com/repos/NLog/NLog/issues/1563","repository_url":"https://api.github.com/repos/NLog/NLog","labels_url":"https://api.github.com/repos/NLog/NLog/issues/1563/labels{/name}","comments_url":"https://api.github.com/repos/NLog/NLog/issues/1563/comments","events_url":"https://api.github.com/repos/NLog/NLog/issues/1563/events","html_url":"https://github.com/NLog/NLog/issues/1563","id":167649870,"number":1563,"title":"How to get the line number where the exception was thrown","user":{"login":"ghost","id":10137,"avatar_url":"https://avatars0.githubusercontent.com/u/10137?v=3","gravatar_id":"","url":"https://api.github.com/users/ghost","html_url":"https://github.com/ghost","followers_url":"https://api.github.com/users/ghost/followers","following_url":"https://api.github.com/users/ghost/following{/other_user}","gists_url":"https://api.github.com/users/ghost/gists{/gist_id}","starred_url":"https://api.github.com/users/ghost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghost/subscriptions","organizations_url":"https://api.github.com/users/ghost/orgs","repos_url":"https://api.github.com/users/ghost/repos","events_url":"https://api.github.com/users/ghost/events{/privacy}","received_events_url":"https://api.github.com/users/ghost/received_events","type":"User","site_admin":false},"labels":[{"id":13795225,"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":3,"created_at":"2016-07-26T16:17:33Z","updated_at":"2017-03-13T16:06:33Z","closed_at":"2016-09-03T22:52:03Z","body":"- Question\n\n${callsite-linenumber:skipFrames=Integer}, this one is get The call site source line number but not exact error line number.\nexample,\n\n``` c#\n 1        int i = 0;\n 2         try\n 3          {\n 4               int j = 5 / i;\n 5          }\n 6           catch (Exception e)\n 7          {\n 8               logger.Error(e);\n 9           }\n```\n\nUsing ${callsite-linenumber} output is 8 but i want error line number output here is line number 4.\n"},"comment":{"url":"https://api.github.com/repos/NLog/NLog/issues/comments/286154774","html_url":"https://github.com/NLog/NLog/issues/1563#issuecomment-286154774","issue_url":"https://api.github.com/repos/NLog/NLog/issues/1563","id":286154774,"user":{"login":"patja","id":155642,"avatar_url":"https://avatars1.githubusercontent.com/u/155642?v=3","gravatar_id":"","url":"https://api.github.com/users/patja","html_url":"https://github.com/patja","followers_url":"https://api.github.com/users/patja/followers","following_url":"https://api.github.com/users/patja/following{/other_user}","gists_url":"https://api.github.com/users/patja/gists{/gist_id}","starred_url":"https://api.github.com/users/patja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patja/subscriptions","organizations_url":"https://api.github.com/users/patja/orgs","repos_url":"https://api.github.com/users/patja/repos","events_url":"https://api.github.com/users/patja/events{/privacy}","received_events_url":"https://api.github.com/users/patja/received_events","type":"User","site_admin":false},"created_at":"2017-03-13T16:06:33Z","updated_at":"2017-03-13T16:06:33Z","body":"Coming from log4net I was also surprised by the lack of a specific line number from the stack trace in Nlog.  I share the question raised by @linflux of what is the best approach to generalize this to all exception logging using Nlog"}}
{"actor":{"display_login":"patja"}}