{"action":"created","issue":{"url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/3294","labels_url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/3294/labels{/name}","comments_url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/3294/comments","events_url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/3294/events","html_url":"https://github.com/easydigitaldownloads/Easy-Digital-Downloads/issues/3294","id":63311458,"number":3294,"title":"Add new general logging system","user":{"login":"ghost1227","id":36433,"avatar_url":"https://avatars.githubusercontent.com/u/36433?v=3","gravatar_id":"","url":"https://api.github.com/users/ghost1227","html_url":"https://github.com/ghost1227","followers_url":"https://api.github.com/users/ghost1227/followers","following_url":"https://api.github.com/users/ghost1227/following{/other_user}","gists_url":"https://api.github.com/users/ghost1227/gists{/gist_id}","starred_url":"https://api.github.com/users/ghost1227/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghost1227/subscriptions","organizations_url":"https://api.github.com/users/ghost1227/orgs","repos_url":"https://api.github.com/users/ghost1227/repos","events_url":"https://api.github.com/users/ghost1227/events{/privacy}","received_events_url":"https://api.github.com/users/ghost1227/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/labels/Enhancement","name":"Enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/milestones/102","html_url":"https://github.com/easydigitaldownloads/Easy-Digital-Downloads/milestones/2.6","labels_url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/milestones/102/labels","id":1095888,"number":102,"title":"2.6","description":null,"creator":{"login":"pippinsplugins","id":1034109,"avatar_url":"https://avatars.githubusercontent.com/u/1034109?v=3","gravatar_id":"","url":"https://api.github.com/users/pippinsplugins","html_url":"https://github.com/pippinsplugins","followers_url":"https://api.github.com/users/pippinsplugins/followers","following_url":"https://api.github.com/users/pippinsplugins/following{/other_user}","gists_url":"https://api.github.com/users/pippinsplugins/gists{/gist_id}","starred_url":"https://api.github.com/users/pippinsplugins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pippinsplugins/subscriptions","organizations_url":"https://api.github.com/users/pippinsplugins/orgs","repos_url":"https://api.github.com/users/pippinsplugins/repos","events_url":"https://api.github.com/users/pippinsplugins/events{/privacy}","received_events_url":"https://api.github.com/users/pippinsplugins/received_events","type":"User","site_admin":false},"open_issues":39,"closed_issues":0,"state":"open","created_at":"2015-05-04T21:37:54Z","updated_at":"2015-08-12T18:50:28Z","due_on":null,"closed_at":null},"comments":12,"created_at":"2015-03-20T21:27:41Z","updated_at":"2015-08-24T19:33:18Z","closed_at":null,"body":"Currently, we don't have a good method of logging general errors in EDD. Things like gateway and API errors are easily tracked, but what happens when you integrate with a third-party service and that service throws an error? Right now, there's not any easy way of notifying the site operator that there has been a problem. You could always display the error on the frontend (in the case of checkout errors), but usually that kind of error isn't relevant to the end user.\r\n\r\nI propose the addition of a new logging system based on the current gateway log structure. The gateway logs are ideal due to the nature of the currently tracked data (identification of the transaction which caused the error, date, time, etc), and given it's already structured to handle multi-type data (strings or arrays being the most commonly returned data). The new system would also necessitate addition of a new function `edd_log_extension_error( <Extension Name>, $error );`."},"comment":{"url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/comments/134349703","html_url":"https://github.com/easydigitaldownloads/Easy-Digital-Downloads/issues/3294#issuecomment-134349703","issue_url":"https://api.github.com/repos/easydigitaldownloads/Easy-Digital-Downloads/issues/3294","id":134349703,"user":{"login":"ghost1227","id":36433,"avatar_url":"https://avatars.githubusercontent.com/u/36433?v=3","gravatar_id":"","url":"https://api.github.com/users/ghost1227","html_url":"https://github.com/ghost1227","followers_url":"https://api.github.com/users/ghost1227/followers","following_url":"https://api.github.com/users/ghost1227/following{/other_user}","gists_url":"https://api.github.com/users/ghost1227/gists{/gist_id}","starred_url":"https://api.github.com/users/ghost1227/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghost1227/subscriptions","organizations_url":"https://api.github.com/users/ghost1227/orgs","repos_url":"https://api.github.com/users/ghost1227/repos","events_url":"https://api.github.com/users/ghost1227/events{/privacy}","received_events_url":"https://api.github.com/users/ghost1227/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T19:33:18Z","updated_at":"2015-08-24T19:33:18Z","body":"@cklosowski That function was intended to represent a global logging function (replacing the current `edd_log_gateway_error()` function). The function itself would assume `$payment_id` is null unless `$type == 'gateway'`"}}