{"action":"created","issue":{"url":"https://api.github.com/repos/NLog/NLog/issues/1426","repository_url":"https://api.github.com/repos/NLog/NLog","labels_url":"https://api.github.com/repos/NLog/NLog/issues/1426/labels{/name}","comments_url":"https://api.github.com/repos/NLog/NLog/issues/1426/comments","events_url":"https://api.github.com/repos/NLog/NLog/issues/1426/events","html_url":"https://github.com/NLog/NLog/issues/1426","id":152629450,"number":1426,"title":"async=\"true\" loses current thread identity","user":{"login":"niemyjski","id":1020579,"avatar_url":"https://avatars.githubusercontent.com/u/1020579?v=3","gravatar_id":"","url":"https://api.github.com/users/niemyjski","html_url":"https://github.com/niemyjski","followers_url":"https://api.github.com/users/niemyjski/followers","following_url":"https://api.github.com/users/niemyjski/following{/other_user}","gists_url":"https://api.github.com/users/niemyjski/gists{/gist_id}","starred_url":"https://api.github.com/users/niemyjski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niemyjski/subscriptions","organizations_url":"https://api.github.com/users/niemyjski/orgs","repos_url":"https://api.github.com/users/niemyjski/repos","events_url":"https://api.github.com/users/niemyjski/events{/privacy}","received_events_url":"https://api.github.com/users/niemyjski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-02T19:49:20Z","updated_at":"2016-05-02T19:54:36Z","closed_at":null,"body":"I'm setting `async=\"true\"` for perf reasons and I know that causes targets to be called on a secondary thread. I was wondering how I can keep the user identity (even the identity.name) of the thread when the log message was created. I see that the layout renders have access to this but my custom targets do not have identity information cached anywhere. I think if this isn't possible, we should at least pass the existing identity along to the target."},"comment":{"url":"https://api.github.com/repos/NLog/NLog/issues/comments/216343577","html_url":"https://github.com/NLog/NLog/issues/1426#issuecomment-216343577","issue_url":"https://api.github.com/repos/NLog/NLog/issues/1426","id":216343577,"user":{"login":"304NotModified","id":5808377,"avatar_url":"https://avatars.githubusercontent.com/u/5808377?v=3","gravatar_id":"","url":"https://api.github.com/users/304NotModified","html_url":"https://github.com/304NotModified","followers_url":"https://api.github.com/users/304NotModified/followers","following_url":"https://api.github.com/users/304NotModified/following{/other_user}","gists_url":"https://api.github.com/users/304NotModified/gists{/gist_id}","starred_url":"https://api.github.com/users/304NotModified/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/304NotModified/subscriptions","organizations_url":"https://api.github.com/users/304NotModified/orgs","repos_url":"https://api.github.com/users/304NotModified/repos","events_url":"https://api.github.com/users/304NotModified/events{/privacy}","received_events_url":"https://api.github.com/users/304NotModified/received_events","type":"User","site_admin":false},"created_at":"2016-05-02T19:54:36Z","updated_at":"2016-05-02T19:54:36Z","body":"do you mean `${windows-identity}`? "}}