{"action":"created","issue":{"url":"https://api.github.com/repos/librenms/librenms/issues/3003","repository_url":"https://api.github.com/repos/librenms/librenms","labels_url":"https://api.github.com/repos/librenms/librenms/issues/3003/labels{/name}","comments_url":"https://api.github.com/repos/librenms/librenms/issues/3003/comments","events_url":"https://api.github.com/repos/librenms/librenms/issues/3003/events","html_url":"https://github.com/librenms/librenms/issues/3003","id":133506032,"number":3003,"title":"Debug to File","user":{"login":"adaniels21487","id":13431617,"avatar_url":"https://avatars.githubusercontent.com/u/13431617?v=3","gravatar_id":"","url":"https://api.github.com/users/adaniels21487","html_url":"https://github.com/adaniels21487","followers_url":"https://api.github.com/users/adaniels21487/followers","following_url":"https://api.github.com/users/adaniels21487/following{/other_user}","gists_url":"https://api.github.com/users/adaniels21487/gists{/gist_id}","starred_url":"https://api.github.com/users/adaniels21487/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adaniels21487/subscriptions","organizations_url":"https://api.github.com/users/adaniels21487/orgs","repos_url":"https://api.github.com/users/adaniels21487/repos","events_url":"https://api.github.com/users/adaniels21487/events{/privacy}","received_events_url":"https://api.github.com/users/adaniels21487/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-14T05:04:44Z","updated_at":"2016-02-17T05:45:10Z","closed_at":null,"body":"d_echo()  should have a configuration option to output log messages to file.\r\nwhen enabled, the function should be able to determine where it is being called from and should log to the corresponding location:\r\n\r\n- poller - ./logs/poller-$device['hostname'].log\r\n- discovery - ./logs/discovery-$device['hostname'].log\r\n- gui - ./logs/gui.log\r\n\r\nLibreNMS should also include a sample logrotate configuration file which will rotate these and existing log files.\r\n"},"comment":{"url":"https://api.github.com/repos/librenms/librenms/issues/comments/185036961","html_url":"https://github.com/librenms/librenms/issues/3003#issuecomment-185036961","issue_url":"https://api.github.com/repos/librenms/librenms/issues/3003","id":185036961,"user":{"login":"adaniels21487","id":13431617,"avatar_url":"https://avatars.githubusercontent.com/u/13431617?v=3","gravatar_id":"","url":"https://api.github.com/users/adaniels21487","html_url":"https://github.com/adaniels21487","followers_url":"https://api.github.com/users/adaniels21487/followers","following_url":"https://api.github.com/users/adaniels21487/following{/other_user}","gists_url":"https://api.github.com/users/adaniels21487/gists{/gist_id}","starred_url":"https://api.github.com/users/adaniels21487/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adaniels21487/subscriptions","organizations_url":"https://api.github.com/users/adaniels21487/orgs","repos_url":"https://api.github.com/users/adaniels21487/repos","events_url":"https://api.github.com/users/adaniels21487/events{/privacy}","received_events_url":"https://api.github.com/users/adaniels21487/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T05:45:10Z","updated_at":"2016-02-17T05:45:10Z","body":"Hi Mate,\r\nMy best use case is developing on the GUI side.\r\nCurrently I do a d_echo to see what a variable is holding and it vanishes into the ether.\r\n\r\nAs I play, I am finding that there is not too much that actually uses d_echo. most things still use:\r\n```if ($debug) {```\r\n\r\nSo, what I am proposing would only be useful if a whole lot of other work happened to make all debug's use d_echo.\r\n\r\nThis kind of logging is easily available in laravel so with the rewrite being planned, I am not sure this is worth the effort...\r\n\r\nAaron"}}