{"action":"created","issue":{"url":"https://api.github.com/repos/OrchardCMS/Brochard/issues/5","labels_url":"https://api.github.com/repos/OrchardCMS/Brochard/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/OrchardCMS/Brochard/issues/5/comments","events_url":"https://api.github.com/repos/OrchardCMS/Brochard/issues/5/events","html_url":"https://github.com/OrchardCMS/Brochard/issues/5","id":55433909,"number":5,"title":"Plug in a real logger.","user":{"login":"Jetski5822","id":619530,"avatar_url":"https://avatars.githubusercontent.com/u/619530?v=3","gravatar_id":"","url":"https://api.github.com/users/Jetski5822","html_url":"https://github.com/Jetski5822","followers_url":"https://api.github.com/users/Jetski5822/followers","following_url":"https://api.github.com/users/Jetski5822/following{/other_user}","gists_url":"https://api.github.com/users/Jetski5822/gists{/gist_id}","starred_url":"https://api.github.com/users/Jetski5822/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jetski5822/subscriptions","organizations_url":"https://api.github.com/users/Jetski5822/orgs","repos_url":"https://api.github.com/users/Jetski5822/repos","events_url":"https://api.github.com/users/Jetski5822/events{/privacy}","received_events_url":"https://api.github.com/users/Jetski5822/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OrchardCMS/Brochard/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"Jetski5822","id":619530,"avatar_url":"https://avatars.githubusercontent.com/u/619530?v=3","gravatar_id":"","url":"https://api.github.com/users/Jetski5822","html_url":"https://github.com/Jetski5822","followers_url":"https://api.github.com/users/Jetski5822/followers","following_url":"https://api.github.com/users/Jetski5822/following{/other_user}","gists_url":"https://api.github.com/users/Jetski5822/gists{/gist_id}","starred_url":"https://api.github.com/users/Jetski5822/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jetski5822/subscriptions","organizations_url":"https://api.github.com/users/Jetski5822/orgs","repos_url":"https://api.github.com/users/Jetski5822/repos","events_url":"https://api.github.com/users/Jetski5822/events{/privacy}","received_events_url":"https://api.github.com/users/Jetski5822/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/OrchardCMS/Brochard/milestones/2","html_url":"https://github.com/OrchardCMS/Brochard/milestones/Logging","labels_url":"https://api.github.com/repos/OrchardCMS/Brochard/milestones/2/labels","id":1074770,"number":2,"title":"Logging","description":null,"creator":{"login":"Jetski5822","id":619530,"avatar_url":"https://avatars.githubusercontent.com/u/619530?v=3","gravatar_id":"","url":"https://api.github.com/users/Jetski5822","html_url":"https://github.com/Jetski5822","followers_url":"https://api.github.com/users/Jetski5822/followers","following_url":"https://api.github.com/users/Jetski5822/following{/other_user}","gists_url":"https://api.github.com/users/Jetski5822/gists{/gist_id}","starred_url":"https://api.github.com/users/Jetski5822/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jetski5822/subscriptions","organizations_url":"https://api.github.com/users/Jetski5822/orgs","repos_url":"https://api.github.com/users/Jetski5822/repos","events_url":"https://api.github.com/users/Jetski5822/events{/privacy}","received_events_url":"https://api.github.com/users/Jetski5822/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":1,"state":"open","created_at":"2015-04-20T08:23:58Z","updated_at":"2015-08-23T19:11:21Z","due_on":null,"closed_at":null},"comments":11,"created_at":"2015-01-25T22:53:01Z","updated_at":"2015-08-23T19:11:21Z","closed_at":"2015-08-23T19:11:21Z","body":"At the moment we have just a static console logger called FakeLogger. Lets get a real one in there and allow it to be easily swap-able."},"comment":{"url":"https://api.github.com/repos/OrchardCMS/Brochard/issues/comments/133899789","html_url":"https://github.com/OrchardCMS/Brochard/issues/5#issuecomment-133899789","issue_url":"https://api.github.com/repos/OrchardCMS/Brochard/issues/5","id":133899789,"user":{"login":"Jetski5822","id":619530,"avatar_url":"https://avatars.githubusercontent.com/u/619530?v=3","gravatar_id":"","url":"https://api.github.com/users/Jetski5822","html_url":"https://github.com/Jetski5822","followers_url":"https://api.github.com/users/Jetski5822/followers","following_url":"https://api.github.com/users/Jetski5822/following{/other_user}","gists_url":"https://api.github.com/users/Jetski5822/gists{/gist_id}","starred_url":"https://api.github.com/users/Jetski5822/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jetski5822/subscriptions","organizations_url":"https://api.github.com/users/Jetski5822/orgs","repos_url":"https://api.github.com/users/Jetski5822/repos","events_url":"https://api.github.com/users/Jetski5822/events{/privacy}","received_events_url":"https://api.github.com/users/Jetski5822/received_events","type":"User","site_admin":false},"created_at":"2015-08-23T19:11:21Z","updated_at":"2015-08-23T19:11:21Z","body":"Okay done! To plug in another logger we just need to create a module and implement the ILoggingInitiator interface. This will then get added to the Logger pipeline at the ApplicationServices level.\r\n\r\ni.e.\r\n\r\n    public class LoggingInitiator : ILoggingInitiator {\r\n        public void Initialize(ILoggerFactory loggerFactory) {\r\n            loggerFactory.AddConsole(LogLevel.Debug);\r\n        }\r\n    }\r\n\r\nFor NLog\r\n\r\n    public class LoggingInitiator : ILoggingInitiator {\r\n        public void Initialize(ILoggerFactory loggerFactory) {\r\n            loggerFactory.AddNLog(LogLevel.Debug);\r\n        }\r\n    }"}}