{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Logging/issues/275","labels_url":"https://api.github.com/repos/aspnet/Logging/issues/275/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Logging/issues/275/comments","events_url":"https://api.github.com/repos/aspnet/Logging/issues/275/events","html_url":"https://github.com/aspnet/Logging/issues/275","id":113205786,"number":275,"title":"Unintuitive: DebugLoggerFactoryExtensions.AddDebug defaults to LogLevel.Information","user":{"login":"ashimoon","id":583838,"avatar_url":"https://avatars.githubusercontent.com/u/583838?v=3","gravatar_id":"","url":"https://api.github.com/users/ashimoon","html_url":"https://github.com/ashimoon","followers_url":"https://api.github.com/users/ashimoon/followers","following_url":"https://api.github.com/users/ashimoon/following{/other_user}","gists_url":"https://api.github.com/users/ashimoon/gists{/gist_id}","starred_url":"https://api.github.com/users/ashimoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashimoon/subscriptions","organizations_url":"https://api.github.com/users/ashimoon/orgs","repos_url":"https://api.github.com/users/ashimoon/repos","events_url":"https://api.github.com/users/ashimoon/events{/privacy}","received_events_url":"https://api.github.com/users/ashimoon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-25T04:22:57Z","updated_at":"2015-10-28T17:05:29Z","closed_at":null,"body":"This was a bit of a head scratcher, I added a `Debug` logger to my beta8 project using the `AddDebug` extension method here:\r\n\r\nhttps://github.com/aspnet/Logging/blob/dev/src/Microsoft.Extensions.Logging.Debug/DebugLoggerFactoryExtensions.cs#L18\r\n\r\nHowever, my log statements weren't being shown in the `Debug` output window. When I dug into the source I saw that the default log level for `AddDebug` is... `LogLevel.Information`.\r\n\r\nIs this intentional? Shouldn't the default be `LogLevel.Debug`?"},"comment":{"url":"https://api.github.com/repos/aspnet/Logging/issues/comments/151911307","html_url":"https://github.com/aspnet/Logging/issues/275#issuecomment-151911307","issue_url":"https://api.github.com/repos/aspnet/Logging/issues/275","id":151911307,"user":{"login":"ashimoon","id":583838,"avatar_url":"https://avatars.githubusercontent.com/u/583838?v=3","gravatar_id":"","url":"https://api.github.com/users/ashimoon","html_url":"https://github.com/ashimoon","followers_url":"https://api.github.com/users/ashimoon/followers","following_url":"https://api.github.com/users/ashimoon/following{/other_user}","gists_url":"https://api.github.com/users/ashimoon/gists{/gist_id}","starred_url":"https://api.github.com/users/ashimoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashimoon/subscriptions","organizations_url":"https://api.github.com/users/ashimoon/orgs","repos_url":"https://api.github.com/users/ashimoon/repos","events_url":"https://api.github.com/users/ashimoon/events{/privacy}","received_events_url":"https://api.github.com/users/ashimoon/received_events","type":"User","site_admin":false},"created_at":"2015-10-28T17:05:29Z","updated_at":"2015-10-28T17:05:29Z","body":"@Eilon Okay that makes sense. I would agree with that. Also once a new user encounters this issue one time they will probably understand it pretty well going forward.\r\n\r\nI'm still wondering if you have any thoughts on how it can be easier for newcomers? I'm thinking specifically about this piece of code that gets scaffolded automatically in a new ASP.NET 5 project:\r\n\r\n    loggerFactory.MinimumLevel = LogLevel.Information;\r\n    loggerFactory.AddConsole();\r\n    loggerFactory.AddDebug();\r\n\r\nI ended up changing it to:\r\n\r\n    loggerFactory.MinimumLevel = LogLevel.Debug;\r\n    loggerFactory.AddConsole(LogLevel.Debug);\r\n    loggerFactory.AddDebug(LogLevel.Debug);\r\n\r\nWhen I look at the updated block of code, I see immediately that there are provider vs. logger debug levels. Before, it wasn't entirely clear what `loggerFactory.MinimumLevel` was for.\r\n\r\nI'd be really curious to hear your thoughts on that since I would bet a ton of people will be adopting ASP.NET 5 for the first time since it is awesome sauce, and they will use the default template as a starting point for learning probably! \r\n\r\nIs there a good way you can think of to make it obvious to new users that they can do something like this? \r\n\r\n\r\n"}}