{"action":"created","issue":{"url":"https://api.github.com/repos/NLog/NLog.Extensions.Logging/issues/46","repository_url":"https://api.github.com/repos/NLog/NLog.Extensions.Logging","labels_url":"https://api.github.com/repos/NLog/NLog.Extensions.Logging/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/NLog/NLog.Extensions.Logging/issues/46/comments","events_url":"https://api.github.com/repos/NLog/NLog.Extensions.Logging/issues/46/events","html_url":"https://github.com/NLog/NLog.Extensions.Logging/issues/46","id":161604197,"number":46,"title":"EventId formatting","user":{"login":"kimbell","id":11733077,"avatar_url":"https://avatars.githubusercontent.com/u/11733077?v=3","gravatar_id":"","url":"https://api.github.com/users/kimbell","html_url":"https://github.com/kimbell","followers_url":"https://api.github.com/users/kimbell/followers","following_url":"https://api.github.com/users/kimbell/following{/other_user}","gists_url":"https://api.github.com/users/kimbell/gists{/gist_id}","starred_url":"https://api.github.com/users/kimbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimbell/subscriptions","organizations_url":"https://api.github.com/users/kimbell/orgs","repos_url":"https://api.github.com/users/kimbell/repos","events_url":"https://api.github.com/users/kimbell/events{/privacy}","received_events_url":"https://api.github.com/users/kimbell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-22T06:34:59Z","updated_at":"2016-06-22T06:58:22Z","closed_at":null,"body":"I've been playing around with NLog and ILogger provided by ASP.NET Core. In the current implementation, the NLogLogger just sticks the EventId into a property of the LogEventInfo.\r\n\r\nWhen this is rendered, it just calls ToString(), resulting in the following output: \r\n|INFO|Microsoft.Extensions.Logging.EventId|\r\n\r\nBefore adding it to the properties, it should be formatted. i.e. something like this:\r\n```CS\r\neventInfo.Properties[\"EventId\"] = string.IsNullOrEmpty(eventId.Name) ? $\"{eventId.Id}\" : $\"{eventId.Name}-{eventId.Id}\";\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/NLog/NLog.Extensions.Logging/issues/comments/227659547","html_url":"https://github.com/NLog/NLog.Extensions.Logging/issues/46#issuecomment-227659547","issue_url":"https://api.github.com/repos/NLog/NLog.Extensions.Logging/issues/46","id":227659547,"user":{"login":"kimbell","id":11733077,"avatar_url":"https://avatars.githubusercontent.com/u/11733077?v=3","gravatar_id":"","url":"https://api.github.com/users/kimbell","html_url":"https://github.com/kimbell","followers_url":"https://api.github.com/users/kimbell/followers","following_url":"https://api.github.com/users/kimbell/following{/other_user}","gists_url":"https://api.github.com/users/kimbell/gists{/gist_id}","starred_url":"https://api.github.com/users/kimbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimbell/subscriptions","organizations_url":"https://api.github.com/users/kimbell/orgs","repos_url":"https://api.github.com/users/kimbell/repos","events_url":"https://api.github.com/users/kimbell/events{/privacy}","received_events_url":"https://api.github.com/users/kimbell/received_events","type":"User","site_admin":false},"created_at":"2016-06-22T06:58:22Z","updated_at":"2016-06-22T06:58:22Z","body":"FYI. This is not a critical issue for us since we have copied the NLogLogger code to our project. We are running in a .NET 4.6 environment, and the extensions package has a dependency on ASP.NET Core hosting, preventing us from using it as-is."}}
{"actor":{"display_login":"kimbell"}}