{"action":"created","issue":{"url":"https://api.github.com/repos/ipfs/js-ipfs/issues/495","repository_url":"https://api.github.com/repos/ipfs/js-ipfs","labels_url":"https://api.github.com/repos/ipfs/js-ipfs/issues/495/labels{/name}","comments_url":"https://api.github.com/repos/ipfs/js-ipfs/issues/495/comments","events_url":"https://api.github.com/repos/ipfs/js-ipfs/issues/495/events","html_url":"https://github.com/ipfs/js-ipfs/issues/495","id":177171986,"number":495,"title":"Migrate CLI output to Logger","user":{"login":"VictorBjelkholm","id":459764,"avatar_url":"https://avatars.githubusercontent.com/u/459764?v=3","gravatar_id":"","url":"https://api.github.com/users/VictorBjelkholm","html_url":"https://github.com/VictorBjelkholm","followers_url":"https://api.github.com/users/VictorBjelkholm/followers","following_url":"https://api.github.com/users/VictorBjelkholm/following{/other_user}","gists_url":"https://api.github.com/users/VictorBjelkholm/gists{/gist_id}","starred_url":"https://api.github.com/users/VictorBjelkholm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VictorBjelkholm/subscriptions","organizations_url":"https://api.github.com/users/VictorBjelkholm/orgs","repos_url":"https://api.github.com/users/VictorBjelkholm/repos","events_url":"https://api.github.com/users/VictorBjelkholm/events{/privacy}","received_events_url":"https://api.github.com/users/VictorBjelkholm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-15T13:10:10Z","updated_at":"2016-09-15T15:44:17Z","closed_at":null,"body":"With the new files APIs, I've started on a logger that has many benefits compared to the current approach of using `console.log` for output.\r\n\r\n* Intent is clear, `console.log` is often used to debugging, may not be clear it's actual output from CLI\r\n* Easier to turn on/off if we want to add a --quiet flag that only outputs some things\r\n* Abstract away the logging from the CLI itself\r\n* Easier to build things that continues on the same line, commands that takes time to execute.\r\n\r\nI don't think this is a urgent refactor we have to do right now, but maybe we can start thinking about it a little, and write new code with the logger, rather than migrating everything at once."},"comment":{"url":"https://api.github.com/repos/ipfs/js-ipfs/issues/comments/247366323","html_url":"https://github.com/ipfs/js-ipfs/issues/495#issuecomment-247366323","issue_url":"https://api.github.com/repos/ipfs/js-ipfs/issues/495","id":247366323,"user":{"login":"diasdavid","id":1211152,"avatar_url":"https://avatars.githubusercontent.com/u/1211152?v=3","gravatar_id":"","url":"https://api.github.com/users/diasdavid","html_url":"https://github.com/diasdavid","followers_url":"https://api.github.com/users/diasdavid/followers","following_url":"https://api.github.com/users/diasdavid/following{/other_user}","gists_url":"https://api.github.com/users/diasdavid/gists{/gist_id}","starred_url":"https://api.github.com/users/diasdavid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diasdavid/subscriptions","organizations_url":"https://api.github.com/users/diasdavid/orgs","repos_url":"https://api.github.com/users/diasdavid/repos","events_url":"https://api.github.com/users/diasdavid/events{/privacy}","received_events_url":"https://api.github.com/users/diasdavid/received_events","type":"User","site_admin":false},"created_at":"2016-09-15T15:44:17Z","updated_at":"2016-09-15T15:44:17Z","body":"👍 for having the ability to turn on/off. \r\n\r\nSince we use `debug` for dev logs (log and log.err), let's call the 'logger' that prints info to the user some other thing. Maybe 'printer'?"}}
{"actor":{"display_login":"diasdavid"}}