{"action":"opened","issue":{"url":"https://api.github.com/repos/thephpleague/tactician-logger/issues/2","labels_url":"https://api.github.com/repos/thephpleague/tactician-logger/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/thephpleague/tactician-logger/issues/2/comments","events_url":"https://api.github.com/repos/thephpleague/tactician-logger/issues/2/events","html_url":"https://github.com/thephpleague/tactician-logger/issues/2","id":62223847,"number":2,"title":"Implement logger as a listener (as well)","user":{"login":"sagikazarmark","id":1226384,"avatar_url":"https://avatars.githubusercontent.com/u/1226384?v=3","gravatar_id":"","url":"https://api.github.com/users/sagikazarmark","html_url":"https://github.com/sagikazarmark","followers_url":"https://api.github.com/users/sagikazarmark/followers","following_url":"https://api.github.com/users/sagikazarmark/following{/other_user}","gists_url":"https://api.github.com/users/sagikazarmark/gists{/gist_id}","starred_url":"https://api.github.com/users/sagikazarmark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagikazarmark/subscriptions","organizations_url":"https://api.github.com/users/sagikazarmark/orgs","repos_url":"https://api.github.com/users/sagikazarmark/repos","events_url":"https://api.github.com/users/sagikazarmark/events{/privacy}","received_events_url":"https://api.github.com/users/sagikazarmark/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-16T22:20:32Z","updated_at":"2015-03-16T22:20:32Z","closed_at":null,"body":"It is just an idea based on the structure of the logger, the middleware architecture is probably still better.\r\n\r\nIt seems to be very similar to the event middleware. It has the three events, exception handling.\r\n\r\nYou could implement the whole middleware as one listener.\r\n\r\nThe benefits:\r\n* You are dealing with one implementation which can be used for all three events\r\n* You can instantiate listeners separately and register separately for events (this way you only have to care about the log level for that particular event)\r\n* You are not reimplementing an already existing logic\r\n\r\nAgain, it is just an idea, but the logger as a listener seems to be much simpler. Probably we could create both."}}