{"action":"opened","issue":{"url":"https://api.github.com/repos/benas/easy-rules/issues/30","labels_url":"https://api.github.com/repos/benas/easy-rules/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/benas/easy-rules/issues/30/comments","events_url":"https://api.github.com/repos/benas/easy-rules/issues/30/events","html_url":"https://github.com/benas/easy-rules/issues/30","id":120656870,"number":30,"title":"Log registered rules at engine startup","user":{"login":"benas","id":1210553,"avatar_url":"https://avatars.githubusercontent.com/u/1210553?v=3","gravatar_id":"","url":"https://api.github.com/users/benas","html_url":"https://github.com/benas","followers_url":"https://api.github.com/users/benas/followers","following_url":"https://api.github.com/users/benas/following{/other_user}","gists_url":"https://api.github.com/users/benas/gists{/gist_id}","starred_url":"https://api.github.com/users/benas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benas/subscriptions","organizations_url":"https://api.github.com/users/benas/orgs","repos_url":"https://api.github.com/users/benas/repos","events_url":"https://api.github.com/users/benas/events{/privacy}","received_events_url":"https://api.github.com/users/benas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/benas/easy-rules/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"benas","id":1210553,"avatar_url":"https://avatars.githubusercontent.com/u/1210553?v=3","gravatar_id":"","url":"https://api.github.com/users/benas","html_url":"https://github.com/benas","followers_url":"https://api.github.com/users/benas/followers","following_url":"https://api.github.com/users/benas/following{/other_user}","gists_url":"https://api.github.com/users/benas/gists{/gist_id}","starred_url":"https://api.github.com/users/benas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benas/subscriptions","organizations_url":"https://api.github.com/users/benas/orgs","repos_url":"https://api.github.com/users/benas/repos","events_url":"https://api.github.com/users/benas/events{/privacy}","received_events_url":"https://api.github.com/users/benas/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/benas/easy-rules/milestones/2","html_url":"https://github.com/benas/easy-rules/milestones/2.2.0","labels_url":"https://api.github.com/repos/benas/easy-rules/milestones/2/labels","id":1408348,"number":2,"title":"2.2.0","description":"","creator":{"login":"benas","id":1210553,"avatar_url":"https://avatars.githubusercontent.com/u/1210553?v=3","gravatar_id":"","url":"https://api.github.com/users/benas","html_url":"https://github.com/benas","followers_url":"https://api.github.com/users/benas/followers","following_url":"https://api.github.com/users/benas/following{/other_user}","gists_url":"https://api.github.com/users/benas/gists{/gist_id}","starred_url":"https://api.github.com/users/benas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benas/subscriptions","organizations_url":"https://api.github.com/users/benas/orgs","repos_url":"https://api.github.com/users/benas/repos","events_url":"https://api.github.com/users/benas/events{/privacy}","received_events_url":"https://api.github.com/users/benas/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":6,"state":"open","created_at":"2015-11-12T12:28:57Z","updated_at":"2015-12-06T20:18:05Z","due_on":"2015-12-05T23:00:00Z","closed_at":null},"comments":0,"created_at":"2015-12-06T20:18:05Z","updated_at":"2015-12-06T20:18:05Z","closed_at":null,"body":"It would be great if the engine logs registered rules at startup. This makes it easier to debug engine behaviour at runtime. Here is an example for the shop tutorial:\r\n\r\n```\r\nTom: Hi! can I have some Vodka please?\r\n[Sun Dec 06 21:11:47 CET 2015] INFO: Engine name: shop rules engine\r\n[Sun Dec 06 21:11:47 CET 2015] INFO: Rule priority threshold: 2,147,483,647\r\n[Sun Dec 06 21:11:47 CET 2015] INFO: Skip on first applied rule: false\r\n[Sun Dec 06 21:11:47 CET 2015] INFO: Skip on first failed rule: false\r\n[Sun Dec 06 21:11:47 CET 2015] INFO: Registered rules:\r\n[Sun Dec 06 21:11:47 CET 2015] INFO: Rule { name = 'AgeRule', description = 'Check if person's age is > 18 and marks the person as adult', priority = '1'}\r\n[Sun Dec 06 21:11:47 CET 2015] INFO: Rule { name = 'AlcoholRule', description = 'Children are not allowed to buy alcohol', priority = '2'}\r\n[Sun Dec 06 21:11:47 CET 2015] INFO: Rule 'AgeRule' has been evaluated to false, it has not been executed\r\n[Sun Dec 06 21:11:47 CET 2015] INFO: Rule 'AlcoholRule' triggered\r\nShop: Sorry Tom, you are not allowed to buy alcohol\r\n[Sun Dec 06 21:11:47 CET 2015] INFO: Rule 'AlcoholRule' performed successfully\r\n```"}}