{"action":"created","issue":{"url":"https://api.github.com/repos/Seldaek/monolog/issues/779","repository_url":"https://api.github.com/repos/Seldaek/monolog","labels_url":"https://api.github.com/repos/Seldaek/monolog/issues/779/labels{/name}","comments_url":"https://api.github.com/repos/Seldaek/monolog/issues/779/comments","events_url":"https://api.github.com/repos/Seldaek/monolog/issues/779/events","html_url":"https://github.com/Seldaek/monolog/issues/779","id":151160500,"number":779,"title":"Only log messages from classes of a specific namespace and log level","user":{"login":"kwebble","id":5430511,"avatar_url":"https://avatars.githubusercontent.com/u/5430511?v=3","gravatar_id":"","url":"https://api.github.com/users/kwebble","html_url":"https://github.com/kwebble","followers_url":"https://api.github.com/users/kwebble/followers","following_url":"https://api.github.com/users/kwebble/following{/other_user}","gists_url":"https://api.github.com/users/kwebble/gists{/gist_id}","starred_url":"https://api.github.com/users/kwebble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwebble/subscriptions","organizations_url":"https://api.github.com/users/kwebble/orgs","repos_url":"https://api.github.com/users/kwebble/repos","events_url":"https://api.github.com/users/kwebble/events{/privacy}","received_events_url":"https://api.github.com/users/kwebble/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-04-26T15:08:03Z","updated_at":"2016-04-27T14:45:44Z","closed_at":"2016-04-26T19:33:43Z","body":"I want to log info messages from all classes of a specific namespace in a separate log file. Can you configure a Monolog logger to do this?\r\n"},"comment":{"url":"https://api.github.com/repos/Seldaek/monolog/issues/comments/215106829","html_url":"https://github.com/Seldaek/monolog/issues/779#issuecomment-215106829","issue_url":"https://api.github.com/repos/Seldaek/monolog/issues/779","id":215106829,"user":{"login":"kwebble","id":5430511,"avatar_url":"https://avatars.githubusercontent.com/u/5430511?v=3","gravatar_id":"","url":"https://api.github.com/users/kwebble","html_url":"https://github.com/kwebble","followers_url":"https://api.github.com/users/kwebble/followers","following_url":"https://api.github.com/users/kwebble/following{/other_user}","gists_url":"https://api.github.com/users/kwebble/gists{/gist_id}","starred_url":"https://api.github.com/users/kwebble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwebble/subscriptions","organizations_url":"https://api.github.com/users/kwebble/orgs","repos_url":"https://api.github.com/users/kwebble/repos","events_url":"https://api.github.com/users/kwebble/events{/privacy}","received_events_url":"https://api.github.com/users/kwebble/received_events","type":"User","site_admin":false},"created_at":"2016-04-27T14:45:44Z","updated_at":"2016-04-27T14:45:44Z","body":"Injecting logger objects is not my idea of the best solution, but for now acceptable. Later it will probably change to something system specific because the logged data represents information that could also be interesting for reporting.\r\n\r\nAbout logging in PHP, it would be nice if there was a standardized way to expose PSR-3 loggers to a PHP system. Then you could swap the log system or change the configuration in a central place and the complete system and all components would pick up the new logging system or changed configuration.\r\n\r\nBut as far as I know that does not exist (yet)."}}