{"action":"created","issue":{"url":"https://api.github.com/repos/meteor-velocity/velocity/issues/262","labels_url":"https://api.github.com/repos/meteor-velocity/velocity/issues/262/labels{/name}","comments_url":"https://api.github.com/repos/meteor-velocity/velocity/issues/262/comments","events_url":"https://api.github.com/repos/meteor-velocity/velocity/issues/262/events","html_url":"https://github.com/meteor-velocity/velocity/issues/262","id":59373074,"number":262,"title":"Make logs more accessible","user":{"login":"Sanjo","id":727955,"avatar_url":"https://avatars.githubusercontent.com/u/727955?v=3","gravatar_id":"","url":"https://api.github.com/users/Sanjo","html_url":"https://github.com/Sanjo","followers_url":"https://api.github.com/users/Sanjo/followers","following_url":"https://api.github.com/users/Sanjo/following{/other_user}","gists_url":"https://api.github.com/users/Sanjo/gists{/gist_id}","starred_url":"https://api.github.com/users/Sanjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sanjo/subscriptions","organizations_url":"https://api.github.com/users/Sanjo/orgs","repos_url":"https://api.github.com/users/Sanjo/repos","events_url":"https://api.github.com/users/Sanjo/events{/privacy}","received_events_url":"https://api.github.com/users/Sanjo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-01T02:59:13Z","updated_at":"2015-03-01T05:50:34Z","closed_at":null,"body":"Currently most of the logs are hidden in the .meteor/local/log folder. We should make them more visible. To start with we should transfer them to a central place (velocity:core) into a MongoDB collection.\r\n\r\n### Outputting logs\r\n\r\nFor outputting the logs I suggest a similar plugin system to the test result reporters.\r\nInitially we would have these options:\r\n\r\n* velocity:log-console-reporter (Output to console)\r\n* velocity:html-reporter (Make probably sense to include it as part of the existing html-reporter)\r\n* velocity:log-file-reporter (Output to file)\r\n\r\nIf someone has an alternative suggestion for the naming, let me know.\r\n\r\n### Transferring logs\r\n\r\n#### API\r\n\r\nWe should have a Meteor method in velocity:core for sending log lines from a testing framework to velocity:core.\r\n\r\nA suggestion (still WiP):\r\n```javascript\r\nMeteor.call('velocity/logs/submit', {\r\n  framework: 'my-framework',\r\n  lines: [\r\n    'Line 1',\r\n    'Line 2'\r\n  ]\r\n})\r\n```\r\n\r\n* Assign log lines to a specific framework\r\n* Allow to send multiple lines with one Meteor call (does this make a performance difference vs. one call per line?)\r\n\r\n#### Mirror logs\r\n\r\nTransfer stdout and stderr of mirrors to the main app."},"comment":{"url":"https://api.github.com/repos/meteor-velocity/velocity/issues/comments/76576659","html_url":"https://github.com/meteor-velocity/velocity/issues/262#issuecomment-76576659","issue_url":"https://api.github.com/repos/meteor-velocity/velocity/issues/262","id":76576659,"user":{"login":"samhatoum","id":2021955,"avatar_url":"https://avatars.githubusercontent.com/u/2021955?v=3","gravatar_id":"","url":"https://api.github.com/users/samhatoum","html_url":"https://github.com/samhatoum","followers_url":"https://api.github.com/users/samhatoum/followers","following_url":"https://api.github.com/users/samhatoum/following{/other_user}","gists_url":"https://api.github.com/users/samhatoum/gists{/gist_id}","starred_url":"https://api.github.com/users/samhatoum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samhatoum/subscriptions","organizations_url":"https://api.github.com/users/samhatoum/orgs","repos_url":"https://api.github.com/users/samhatoum/repos","events_url":"https://api.github.com/users/samhatoum/events{/privacy}","received_events_url":"https://api.github.com/users/samhatoum/received_events","type":"User","site_admin":false},"created_at":"2015-03-01T05:50:34Z","updated_at":"2015-03-01T05:50:34Z","body":"@keyscores start meteor with VELOCITY_DEBUG=1. The log will get noisy.\r\n\r\nAs for stack traces from the mirror, check `./meteor/logs/<framework>.log`. This issue is to help fix this decentralized logging problem we currently have"}}