{"action":"created","issue":{"url":"https://api.github.com/repos/sirupsen/logrus/issues/705","repository_url":"https://api.github.com/repos/sirupsen/logrus","labels_url":"https://api.github.com/repos/sirupsen/logrus/issues/705/labels{/name}","comments_url":"https://api.github.com/repos/sirupsen/logrus/issues/705/comments","events_url":"https://api.github.com/repos/sirupsen/logrus/issues/705/events","html_url":"https://github.com/sirupsen/logrus/pull/705","id":296107119,"number":705,"title":"add success logging level, close #699","user":{"login":"shahidhk","id":4124733,"avatar_url":"https://avatars3.githubusercontent.com/u/4124733?v=4","gravatar_id":"","url":"https://api.github.com/users/shahidhk","html_url":"https://github.com/shahidhk","followers_url":"https://api.github.com/users/shahidhk/followers","following_url":"https://api.github.com/users/shahidhk/following{/other_user}","gists_url":"https://api.github.com/users/shahidhk/gists{/gist_id}","starred_url":"https://api.github.com/users/shahidhk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shahidhk/subscriptions","organizations_url":"https://api.github.com/users/shahidhk/orgs","repos_url":"https://api.github.com/users/shahidhk/repos","events_url":"https://api.github.com/users/shahidhk/events{/privacy}","received_events_url":"https://api.github.com/users/shahidhk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-10T15:03:07Z","updated_at":"2018-05-18T05:45:33Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/sirupsen/logrus/pulls/705","html_url":"https://github.com/sirupsen/logrus/pull/705","diff_url":"https://github.com/sirupsen/logrus/pull/705.diff","patch_url":"https://github.com/sirupsen/logrus/pull/705.patch"},"body":"This PR adds support for success logging level, useful mainly for CLI applications to denote an action has been completed.\r\n\r\nThe level is kept below `InfoLevel` so that default log level (which is Info) will also prints out success logs.\r\n\r\nThe actual `int` values for `InfoLevel` and `DebugLevel` changes by `+1`, I hope that is not an issue.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/sirupsen/logrus/issues/comments/390100905","html_url":"https://github.com/sirupsen/logrus/pull/705#issuecomment-390100905","issue_url":"https://api.github.com/repos/sirupsen/logrus/issues/705","id":390100905,"user":{"login":"shahidhk","id":4124733,"avatar_url":"https://avatars3.githubusercontent.com/u/4124733?v=4","gravatar_id":"","url":"https://api.github.com/users/shahidhk","html_url":"https://github.com/shahidhk","followers_url":"https://api.github.com/users/shahidhk/followers","following_url":"https://api.github.com/users/shahidhk/following{/other_user}","gists_url":"https://api.github.com/users/shahidhk/gists{/gist_id}","starred_url":"https://api.github.com/users/shahidhk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shahidhk/subscriptions","organizations_url":"https://api.github.com/users/shahidhk/orgs","repos_url":"https://api.github.com/users/shahidhk/repos","events_url":"https://api.github.com/users/shahidhk/events{/privacy}","received_events_url":"https://api.github.com/users/shahidhk/received_events","type":"User","site_admin":false},"created_at":"2018-05-18T05:45:33Z","updated_at":"2018-05-18T05:45:33Z","author_association":"NONE","body":"@dgsb Let's say a command X is being executed, which does actions A, B, and C thus achieving X. The log output is like this:\r\n\r\n```\r\n$ command X\r\nINFO action A completed\r\nINFO action B completed\r\nINFO action C completed\r\nINFO command X completed\r\n```\r\n\r\nInstead, if it could show:\r\n\r\n```\r\n$ command X\r\nINFO    action A completed\r\nINFO    action B completed\r\nINFO    action C completed\r\nSUCCESS command X completed\r\n```\r\n\r\nit provides a better UX denoting the command has completed successfully. If an error occurs in between, user is clear that even though certain actions have completed, the command itself did not complete."}}
{"actor":{"display_login":"shahidhk"}}