{"action":"created","issue":{"url":"https://api.github.com/repos/btcsuite/btclog/issues/14","repository_url":"https://api.github.com/repos/btcsuite/btclog","labels_url":"https://api.github.com/repos/btcsuite/btclog/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/btcsuite/btclog/issues/14/comments","events_url":"https://api.github.com/repos/btcsuite/btclog/issues/14/events","html_url":"https://github.com/btcsuite/btclog/pull/14","id":279438463,"number":14,"title":"Add TestLogger for testing purposes","user":{"login":"stevenroose","id":853468,"avatar_url":"https://avatars0.githubusercontent.com/u/853468?v=4","gravatar_id":"","url":"https://api.github.com/users/stevenroose","html_url":"https://github.com/stevenroose","followers_url":"https://api.github.com/users/stevenroose/followers","following_url":"https://api.github.com/users/stevenroose/following{/other_user}","gists_url":"https://api.github.com/users/stevenroose/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenroose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenroose/subscriptions","organizations_url":"https://api.github.com/users/stevenroose/orgs","repos_url":"https://api.github.com/users/stevenroose/repos","events_url":"https://api.github.com/users/stevenroose/events{/privacy}","received_events_url":"https://api.github.com/users/stevenroose/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-12-05T16:23:11Z","updated_at":"2017-12-05T18:44:34Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/btcsuite/btclog/pulls/14","html_url":"https://github.com/btcsuite/btclog/pull/14","diff_url":"https://github.com/btcsuite/btclog/pull/14.diff","patch_url":"https://github.com/btcsuite/btclog/pull/14.patch"},"body":"When unit testing a subpackage, it's often useful to see log messages.\r\n\r\nFor this, it would be possible to add something like this in a `_test.go` file:\r\n```go\r\nfunc init() {\r\n    log = btclog.TestLogger\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/btcsuite/btclog/issues/comments/349401522","html_url":"https://github.com/btcsuite/btclog/pull/14#issuecomment-349401522","issue_url":"https://api.github.com/repos/btcsuite/btclog/issues/14","id":349401522,"user":{"login":"stevenroose","id":853468,"avatar_url":"https://avatars0.githubusercontent.com/u/853468?v=4","gravatar_id":"","url":"https://api.github.com/users/stevenroose","html_url":"https://github.com/stevenroose","followers_url":"https://api.github.com/users/stevenroose/followers","following_url":"https://api.github.com/users/stevenroose/following{/other_user}","gists_url":"https://api.github.com/users/stevenroose/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenroose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenroose/subscriptions","organizations_url":"https://api.github.com/users/stevenroose/orgs","repos_url":"https://api.github.com/users/stevenroose/repos","events_url":"https://api.github.com/users/stevenroose/events{/privacy}","received_events_url":"https://api.github.com/users/stevenroose/received_events","type":"User","site_admin":false},"created_at":"2017-12-05T18:44:34Z","updated_at":"2017-12-05T18:44:34Z","author_association":"NONE","body":"Also with the explicit type attached? Let me check that tomorrow.\n\nOn 5 Dec 2017 19:26, \"Josh Rickmar\" <notifications@github.com> wrote:\n\n> *@jrick* commented on this pull request.\n> ------------------------------\n>\n> In log.go\n> <https://github.com/btcsuite/btclog/pull/14#discussion_r155034238>:\n>\n> >\n> -func init() {\n> -\tDisabled = &slog{lvl: LevelOff, b: NewBackend(ioutil.Discard)}\n>\n> fyi, this was done just to remove some ugly from the godoc page which\n> would otherwise show the variable initialized to an unexported type, which\n> isn't super helpful\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/btcsuite/btclog/pull/14#pullrequestreview-81286762>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AA0F3EcfzQrBVu_cNthZ-r_AZ2lCorY4ks5s9YphgaJpZM4Q2kJH>\n> .\n>\n"}}
{"actor":{"display_login":"stevenroose"}}