{"action":"created","issue":{"url":"https://api.github.com/repos/homieiot/convention/issues/77","repository_url":"https://api.github.com/repos/homieiot/convention","labels_url":"https://api.github.com/repos/homieiot/convention/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/homieiot/convention/issues/77/comments","events_url":"https://api.github.com/repos/homieiot/convention/issues/77/events","html_url":"https://github.com/homieiot/convention/issues/77","id":317620282,"number":77,"title":"Implement a log channel for homie","user":{"login":"nicola-lunghi","id":25422924,"avatar_url":"https://avatars0.githubusercontent.com/u/25422924?v=4","gravatar_id":"","url":"https://api.github.com/users/nicola-lunghi","html_url":"https://github.com/nicola-lunghi","followers_url":"https://api.github.com/users/nicola-lunghi/followers","following_url":"https://api.github.com/users/nicola-lunghi/following{/other_user}","gists_url":"https://api.github.com/users/nicola-lunghi/gists{/gist_id}","starred_url":"https://api.github.com/users/nicola-lunghi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicola-lunghi/subscriptions","organizations_url":"https://api.github.com/users/nicola-lunghi/orgs","repos_url":"https://api.github.com/users/nicola-lunghi/repos","events_url":"https://api.github.com/users/nicola-lunghi/events{/privacy}","received_events_url":"https://api.github.com/users/nicola-lunghi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2018-04-25T13:07:43Z","updated_at":"2018-05-01T21:45:54Z","closed_at":null,"author_association":"NONE","body":"Log channel\r\n\r\ndefine a log channel for getting debugging information from the device\r\n\r\nhomie/[device-id]/logs/fatal\r\nhomie/[device-id]/logs/error\r\nhomie/[device-id]/logs/warn\r\nhomie/[device-id]/logs/info\r\nhomie/[device-id]/logs/debug\r\nhomie/[device-id]/logs/trace\r\n"},"comment":{"url":"https://api.github.com/repos/homieiot/convention/issues/comments/385800477","html_url":"https://github.com/homieiot/convention/issues/77#issuecomment-385800477","issue_url":"https://api.github.com/repos/homieiot/convention/issues/77","id":385800477,"user":{"login":"euphi","id":5254983,"avatar_url":"https://avatars3.githubusercontent.com/u/5254983?v=4","gravatar_id":"","url":"https://api.github.com/users/euphi","html_url":"https://github.com/euphi","followers_url":"https://api.github.com/users/euphi/followers","following_url":"https://api.github.com/users/euphi/following{/other_user}","gists_url":"https://api.github.com/users/euphi/gists{/gist_id}","starred_url":"https://api.github.com/users/euphi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/euphi/subscriptions","organizations_url":"https://api.github.com/users/euphi/orgs","repos_url":"https://api.github.com/users/euphi/repos","events_url":"https://api.github.com/users/euphi/events{/privacy}","received_events_url":"https://api.github.com/users/euphi/received_events","type":"User","site_admin":false},"created_at":"2018-05-01T21:45:54Z","updated_at":"2018-05-01T21:45:54Z","author_association":"COLLABORATOR","body":"I'm also unsure if a logging mechanism should be part of the convention. Maybe there could be a appendix to the convention with informal \"best practices\"?\r\n\r\nBut even if we do, what would be the proposal?\r\n\r\n`homie/{$device}/Log/{$function}/{$level}` or  `homie/{$device}/Log/{$level}/{$function}` ?\r\n\r\nAnd `Log` or `$log` ?\r\n\r\n@lorenwest Logging is very important for debugging. On some of my device I test new software by OTA-update, so I have no serial connection. Logging on MQTT is then just convenient.\r\nFurthermore there is not always a \"normal\" channel to publish errors. A temperature node would just stop publishing values in case of reading errors, but you can give an error message (e.g. I2C failure) on a logging channel.\r\n\r\nOf course it is good practice to don't enable DEBUG or INFO log levels by default. "}}
{"actor":{"display_login":"euphi"}}