{"action":"created","issue":{"url":"https://api.github.com/repos/dailymotion/hls.js/issues/85","labels_url":"https://api.github.com/repos/dailymotion/hls.js/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/dailymotion/hls.js/issues/85/comments","events_url":"https://api.github.com/repos/dailymotion/hls.js/issues/85/events","html_url":"https://github.com/dailymotion/hls.js/pull/85","id":118267715,"number":85,"title":"Slightly improved logging module","user":{"login":"tchakabam","id":1480052,"avatar_url":"https://avatars.githubusercontent.com/u/1480052?v=3","gravatar_id":"","url":"https://api.github.com/users/tchakabam","html_url":"https://github.com/tchakabam","followers_url":"https://api.github.com/users/tchakabam/followers","following_url":"https://api.github.com/users/tchakabam/following{/other_user}","gists_url":"https://api.github.com/users/tchakabam/gists{/gist_id}","starred_url":"https://api.github.com/users/tchakabam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tchakabam/subscriptions","organizations_url":"https://api.github.com/users/tchakabam/orgs","repos_url":"https://api.github.com/users/tchakabam/repos","events_url":"https://api.github.com/users/tchakabam/events{/privacy}","received_events_url":"https://api.github.com/users/tchakabam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-22T15:03:04Z","updated_at":"2015-11-24T11:16:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dailymotion/hls.js/pulls/85","html_url":"https://github.com/dailymotion/hls.js/pull/85","diff_url":"https://github.com/dailymotion/hls.js/pull/85.diff","patch_url":"https://github.com/dailymotion/hls.js/pull/85.patch"},"body":"- Adds UTC date and log level to output\r\n- Enables to easily wrap the input to format the output\r\n- Adds support for `debug` and `trace`, when available via console\r\n- Allows to easily hard-disable a level \r\n- Removes redundancy in code\r\n\r\nExample:\r\n\r\n```\r\n2015-11-22T14:58:42.255Z | [log] > level 3 loaded [0,63],duration:634.584\r\nlogger.js:23 2015-11-22T14:58:42.256Z | [log] > Loading 0 of [0 ,63],level 3, currentTime:0,bufferEnd:0.000\r\nlogger.js:23 2015-11-22T14:58:44.199Z | [log] > Demuxing 0 of [0 ,63],level 3\r\nlogger.js:23 2015-11-22T14:58:44.233Z | [log] > selected A/V codecs for sourceBuffers:mp4a.40.5,avc1.64001f\r\nlogger.js:23 2015-11-22T14:58:44.242Z | [log] > parsed data, type/startPTS/endPTS/startDTS/endDTS/nb:video/0.033/10.033/0.000/10.000/600\r\nlogger.js:23 2015-11-22T14:58:44.245Z | [log] > parsed data, type/startPTS/endPTS/startDTS/endDTS/nb:audio/0.010/10.018/0.010/10.018/431\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/dailymotion/hls.js/issues/comments/159234196","html_url":"https://github.com/dailymotion/hls.js/pull/85#issuecomment-159234196","issue_url":"https://api.github.com/repos/dailymotion/hls.js/issues/85","id":159234196,"user":{"login":"tchakabam","id":1480052,"avatar_url":"https://avatars.githubusercontent.com/u/1480052?v=3","gravatar_id":"","url":"https://api.github.com/users/tchakabam","html_url":"https://github.com/tchakabam","followers_url":"https://api.github.com/users/tchakabam/followers","following_url":"https://api.github.com/users/tchakabam/following{/other_user}","gists_url":"https://api.github.com/users/tchakabam/gists{/gist_id}","starred_url":"https://api.github.com/users/tchakabam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tchakabam/subscriptions","organizations_url":"https://api.github.com/users/tchakabam/orgs","repos_url":"https://api.github.com/users/tchakabam/repos","events_url":"https://api.github.com/users/tchakabam/events{/privacy}","received_events_url":"https://api.github.com/users/tchakabam/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T11:16:24Z","updated_at":"2015-11-24T11:16:24Z","body":"that's true, and btw thanks for the pointer, didn't even know these options.\r\n\r\nnow if you get copy-pasted logs from alpha/beta users that have debug logs enabled this might still be more handy to read.\r\n\r\na dev can/will enable this option, but a beta tester probably wont ;)"}}