{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/RazorPages/issues/18","repository_url":"https://api.github.com/repos/aspnet/RazorPages","labels_url":"https://api.github.com/repos/aspnet/RazorPages/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/RazorPages/issues/18/comments","events_url":"https://api.github.com/repos/aspnet/RazorPages/issues/18/events","html_url":"https://github.com/aspnet/RazorPages/issues/18","id":171537729,"number":18,"title":"Generate ILogger","user":{"login":"glennc","id":234688,"avatar_url":"https://avatars.githubusercontent.com/u/234688?v=3","gravatar_id":"","url":"https://api.github.com/users/glennc","html_url":"https://github.com/glennc","followers_url":"https://api.github.com/users/glennc/followers","following_url":"https://api.github.com/users/glennc/following{/other_user}","gists_url":"https://api.github.com/users/glennc/gists{/gist_id}","starred_url":"https://api.github.com/users/glennc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glennc/subscriptions","organizations_url":"https://api.github.com/users/glennc/orgs","repos_url":"https://api.github.com/users/glennc/repos","events_url":"https://api.github.com/users/glennc/events{/privacy}","received_events_url":"https://api.github.com/users/glennc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-16T22:59:34Z","updated_at":"2016-08-16T23:26:17Z","closed_at":null,"body":"In my branch of this I am generating a Logger, since I don't have a class for an ILogger<T>.\r\n\r\nSee: https://github.com/aspnet/RazorPages/blob/glennc/todo/src/Microsoft.AspNetCore.Mvc.RazorPages/Compilation/PageCodeGenerator.cs#L81\r\n\r\nI am using it in the simple todo sample I was creating: https://github.com/aspnet/RazorPages/blob/glennc/todo/samples/RazorPages.Todo/SimpleTodo/Pages/Index.razor#L21\r\n\r\nIf we are good with that then I will leave this in for my PR. The alternative would be something like injecting an `ILoggerFactory` and do `loggerFactory.CreateLogger(\"IndexPage\")`."},"comment":{"url":"https://api.github.com/repos/aspnet/RazorPages/issues/comments/240270192","html_url":"https://github.com/aspnet/RazorPages/issues/18#issuecomment-240270192","issue_url":"https://api.github.com/repos/aspnet/RazorPages/issues/18","id":240270192,"user":{"login":"hishamco","id":3237266,"avatar_url":"https://avatars.githubusercontent.com/u/3237266?v=3","gravatar_id":"","url":"https://api.github.com/users/hishamco","html_url":"https://github.com/hishamco","followers_url":"https://api.github.com/users/hishamco/followers","following_url":"https://api.github.com/users/hishamco/following{/other_user}","gists_url":"https://api.github.com/users/hishamco/gists{/gist_id}","starred_url":"https://api.github.com/users/hishamco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hishamco/subscriptions","organizations_url":"https://api.github.com/users/hishamco/orgs","repos_url":"https://api.github.com/users/hishamco/repos","events_url":"https://api.github.com/users/hishamco/events{/privacy}","received_events_url":"https://api.github.com/users/hishamco/received_events","type":"User","site_admin":false},"created_at":"2016-08-16T23:26:17Z","updated_at":"2016-08-16T23:26:17Z","body":"While we can inject the logger if we have to, we can use it explicit if it's needed. I'm still a fan of pay for the things that I need, so that's the way of how new asp.net core is built."}}
{"actor":{"display_login":"hishamco"}}