{"action":"created","issue":{"url":"https://api.github.com/repos/swift-logging/swift-logging-specifications/issues/2","labels_url":"https://api.github.com/repos/swift-logging/swift-logging-specifications/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/swift-logging/swift-logging-specifications/issues/2/comments","events_url":"https://api.github.com/repos/swift-logging/swift-logging-specifications/issues/2/events","html_url":"https://github.com/swift-logging/swift-logging-specifications/issues/2","id":121573239,"number":2,"title":"Log levels","user":{"login":"roshanr95","id":4298494,"avatar_url":"https://avatars.githubusercontent.com/u/4298494?v=3","gravatar_id":"","url":"https://api.github.com/users/roshanr95","html_url":"https://github.com/roshanr95","followers_url":"https://api.github.com/users/roshanr95/followers","following_url":"https://api.github.com/users/roshanr95/following{/other_user}","gists_url":"https://api.github.com/users/roshanr95/gists{/gist_id}","starred_url":"https://api.github.com/users/roshanr95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roshanr95/subscriptions","organizations_url":"https://api.github.com/users/roshanr95/orgs","repos_url":"https://api.github.com/users/roshanr95/repos","events_url":"https://api.github.com/users/roshanr95/events{/privacy}","received_events_url":"https://api.github.com/users/roshanr95/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-12-10T20:43:59Z","updated_at":"2015-12-16T14:32:28Z","closed_at":null,"body":"Proposal: [SWIFTLOG-0003](https://github.com/akolov/swift-logging/blob/master/proposals/0003-logger-api.md)\r\n\r\nThe log levels used in the reference projects are usually Verbose, Debug, Info, Warn and Error. Any reasons for getting rid of Verbose and adding a Critical level on top of Error?\r\n\r\nEDIT: It would also be beneficial to document what the various levels signify(something like [this](https://github.com/nlog/nlog/wiki/Log-levels))"},"comment":{"url":"https://api.github.com/repos/swift-logging/swift-logging-specifications/issues/comments/165126675","html_url":"https://github.com/swift-logging/swift-logging-specifications/issues/2#issuecomment-165126675","issue_url":"https://api.github.com/repos/swift-logging/swift-logging-specifications/issues/2","id":165126675,"user":{"login":"jeremy-pereira","id":11519054,"avatar_url":"https://avatars.githubusercontent.com/u/11519054?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremy-pereira","html_url":"https://github.com/jeremy-pereira","followers_url":"https://api.github.com/users/jeremy-pereira/followers","following_url":"https://api.github.com/users/jeremy-pereira/following{/other_user}","gists_url":"https://api.github.com/users/jeremy-pereira/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremy-pereira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremy-pereira/subscriptions","organizations_url":"https://api.github.com/users/jeremy-pereira/orgs","repos_url":"https://api.github.com/users/jeremy-pereira/repos","events_url":"https://api.github.com/users/jeremy-pereira/events{/privacy}","received_events_url":"https://api.github.com/users/jeremy-pereira/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T14:32:28Z","updated_at":"2015-12-16T14:32:28Z","body":"@skreutzberger   \r\n> Why not use Warning for Alert and Error for Critical? \r\n\r\nBecause then you lose those levels for application level events. \r\n\r\n> There is no extra cost in having more levels besides uncertainty on the user side which may actually be a big cost in terms of experience.\r\n\r\nI don't think it will be a big cost in terms of experience. Logging systems have had these levels (or equivalent) for many years without thousands of programmers getting confused. We are talking about keeping a couple of extra enum cases which will have a minimal cost in terms of learning curve. \r\n\r\n@sashka \r\n\r\n> From my perspective it'd be great to keep the list of levels minimal and self descriptive.\r\n\r\nI think having alert and critical *is* part of the minimal set.  You might change their names slightly or have some documentation to make it clear that they are meant for system level logging, not application level logging but they have minimal cost and expand the horizons of the module.\r\n\r\n"}}