{"action":"created","issue":{"url":"https://api.github.com/repos/cargomedia/cm-janus/issues/42","labels_url":"https://api.github.com/repos/cargomedia/cm-janus/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/cargomedia/cm-janus/issues/42/comments","events_url":"https://api.github.com/repos/cargomedia/cm-janus/issues/42/events","html_url":"https://github.com/cargomedia/cm-janus/pull/42","id":117120559,"number":42,"title":"Make Logger more oop","user":{"login":"tomaszdurka","id":113303,"avatar_url":"https://avatars.githubusercontent.com/u/113303?v=3","gravatar_id":"","url":"https://api.github.com/users/tomaszdurka","html_url":"https://github.com/tomaszdurka","followers_url":"https://api.github.com/users/tomaszdurka/followers","following_url":"https://api.github.com/users/tomaszdurka/following{/other_user}","gists_url":"https://api.github.com/users/tomaszdurka/gists{/gist_id}","starred_url":"https://api.github.com/users/tomaszdurka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomaszdurka/subscriptions","organizations_url":"https://api.github.com/users/tomaszdurka/orgs","repos_url":"https://api.github.com/users/tomaszdurka/repos","events_url":"https://api.github.com/users/tomaszdurka/events{/privacy}","received_events_url":"https://api.github.com/users/tomaszdurka/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cargomedia/cm-janus/labels/selfmade","name":"selfmade","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-16T13:14:37Z","updated_at":"2015-11-16T17:23:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cargomedia/cm-janus/pulls/42","html_url":"https://github.com/cargomedia/cm-janus/pull/42","diff_url":"https://github.com/cargomedia/cm-janus/pull/42.diff","patch_url":"https://github.com/cargomedia/cm-janus/pull/42.patch"},"body":"Allow to create instances of and mock Logger class.\r\n\r\nService registry:\r\n```js\r\nvar Logger = require('./logger');\r\nvar serviceLocator = require('./service-locator');\r\nserviceLocator.register('logger', function() {\r\n  var logger = new Logger();\r\n  var logFilePath = __dirname + '/../' + this.config['logPath']\r\n  var stream = fs.createWriteStream(logFilePath, {flags: 'a', defaultEncoding: 'utf8'});\r\n  logger.pipe(stream);\r\n  return logger;\r\n});\r\n```\r\n\r\nNot sure if it's possible with minilog which signature is quite strange (unless you know different way than we use).\r\n"},"comment":{"url":"https://api.github.com/repos/cargomedia/cm-janus/issues/comments/157106994","html_url":"https://github.com/cargomedia/cm-janus/pull/42#issuecomment-157106994","issue_url":"https://api.github.com/repos/cargomedia/cm-janus/issues/42","id":157106994,"user":{"login":"fvovan","id":2360687,"avatar_url":"https://avatars.githubusercontent.com/u/2360687?v=3","gravatar_id":"","url":"https://api.github.com/users/fvovan","html_url":"https://github.com/fvovan","followers_url":"https://api.github.com/users/fvovan/followers","following_url":"https://api.github.com/users/fvovan/following{/other_user}","gists_url":"https://api.github.com/users/fvovan/gists{/gist_id}","starred_url":"https://api.github.com/users/fvovan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fvovan/subscriptions","organizations_url":"https://api.github.com/users/fvovan/orgs","repos_url":"https://api.github.com/users/fvovan/repos","events_url":"https://api.github.com/users/fvovan/events{/privacy}","received_events_url":"https://api.github.com/users/fvovan/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T17:23:10Z","updated_at":"2015-11-16T17:23:10Z","body":"lgtm"}}