{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/12957","repository_url":"https://api.github.com/repos/yiisoft/yii2","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/12957/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/12957/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/12957/events","html_url":"https://github.com/yiisoft/yii2/issues/12957","id":188238273,"number":12957,"title":"Console application logging always writes messages of category 'application' even if exempt","user":{"login":"c-schmitz","id":1364282,"avatar_url":"https://avatars.githubusercontent.com/u/1364282?v=3","gravatar_id":"","url":"https://api.github.com/users/c-schmitz","html_url":"https://github.com/c-schmitz","followers_url":"https://api.github.com/users/c-schmitz/followers","following_url":"https://api.github.com/users/c-schmitz/following{/other_user}","gists_url":"https://api.github.com/users/c-schmitz/gists{/gist_id}","starred_url":"https://api.github.com/users/c-schmitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c-schmitz/subscriptions","organizations_url":"https://api.github.com/users/c-schmitz/orgs","repos_url":"https://api.github.com/users/c-schmitz/repos","events_url":"https://api.github.com/users/c-schmitz/events{/privacy}","received_events_url":"https://api.github.com/users/c-schmitz/received_events","type":"User","site_admin":false},"labels":[{"id":38412944,"url":"https://api.github.com/repos/yiisoft/yii2/labels/status:to%20be%20verified","name":"status:to be verified","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":{"login":"samdark","id":47294,"avatar_url":"https://avatars.githubusercontent.com/u/47294?v=3","gravatar_id":"","url":"https://api.github.com/users/samdark","html_url":"https://github.com/samdark","followers_url":"https://api.github.com/users/samdark/followers","following_url":"https://api.github.com/users/samdark/following{/other_user}","gists_url":"https://api.github.com/users/samdark/gists{/gist_id}","starred_url":"https://api.github.com/users/samdark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samdark/subscriptions","organizations_url":"https://api.github.com/users/samdark/orgs","repos_url":"https://api.github.com/users/samdark/repos","events_url":"https://api.github.com/users/samdark/events{/privacy}","received_events_url":"https://api.github.com/users/samdark/received_events","type":"User","site_admin":false},"assignees":[{"login":"samdark","id":47294,"avatar_url":"https://avatars.githubusercontent.com/u/47294?v=3","gravatar_id":"","url":"https://api.github.com/users/samdark","html_url":"https://github.com/samdark","followers_url":"https://api.github.com/users/samdark/followers","following_url":"https://api.github.com/users/samdark/following{/other_user}","gists_url":"https://api.github.com/users/samdark/gists{/gist_id}","starred_url":"https://api.github.com/users/samdark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samdark/subscriptions","organizations_url":"https://api.github.com/users/samdark/orgs","repos_url":"https://api.github.com/users/samdark/repos","events_url":"https://api.github.com/users/samdark/events{/privacy}","received_events_url":"https://api.github.com/users/samdark/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-11-09T12:40:44Z","updated_at":"2016-11-10T08:33:29Z","closed_at":"2016-11-09T22:24:01Z","body":"### What steps will reproduce the problem?\r\nCreate a console application and use logging. We use logging to a database table.\r\n\r\n        'log' => [\r\n            'targets' => [\r\n                [\r\n                    'class' => 'yii\\log\\DbTarget',\r\n                    'levels' => ['error', 'warning','info'],\r\n                    'except' => [\r\n                       'yii\\db\\*',\r\n                       'yii\\swiftmailer\\*',\r\n                       'application'\r\n                     ],\r\n                ],\r\n            ],\r\n        ],\r\n\r\nAs you can see the category 'application' is exempt from logging.\r\n\r\n### What is the expected result?\r\nMessages of category 'application' should not be written to the log table/file.\r\n\r\n### What do you get instead?\r\nMessages of category 'application ' and log level 4 which look like this \r\n\r\n   $_SERVER = [\r\n       'LANGUAGE' => 'en_US:en'\r\n       'HOME' => '/root'\r\n       'LOGNAME' => 'root'\r\n       'PATH' => '/usr/bin:/bin'\r\n       'LANG' => 'en_US.UTF-8'\r\n       'SHELL' => '/bin/sh'\r\n       'PWD' => '/root'\r\n       'PHP_SELF' => '/service/engine/yii'\r\n       'SCRIPT_NAME' => '/service/engine/yii'\r\n       'SCRIPT_FILENAME' => '/service/engine/yii'\r\n       'PATH_TRANSLATED' => '/service/engine/yii'\r\n       'DOCUMENT_ROOT' => ''\r\n       'REQUEST_TIME_FLOAT' => 1478694601.0434\r\n       'REQUEST_TIME' => 1478694601\r\n       'argv' => [\r\n           0 => '/service/engine/yii'\r\n           1 => 'webserver/process-action-queue'\r\n       ]\r\n       'argc' => 2\r\n   ]\r\n\r\n### Additional info\r\n\r\n| Q                | A\r\n| ---------------- | ---\r\n| Yii version      | 2.0.6\r\n| PHP version      | 5.5.9ubuntu\r\n| Operating system | Linux\r\n"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/259630829","html_url":"https://github.com/yiisoft/yii2/issues/12957#issuecomment-259630829","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/12957","id":259630829,"user":{"login":"c-schmitz","id":1364282,"avatar_url":"https://avatars.githubusercontent.com/u/1364282?v=3","gravatar_id":"","url":"https://api.github.com/users/c-schmitz","html_url":"https://github.com/c-schmitz","followers_url":"https://api.github.com/users/c-schmitz/followers","following_url":"https://api.github.com/users/c-schmitz/following{/other_user}","gists_url":"https://api.github.com/users/c-schmitz/gists{/gist_id}","starred_url":"https://api.github.com/users/c-schmitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c-schmitz/subscriptions","organizations_url":"https://api.github.com/users/c-schmitz/orgs","repos_url":"https://api.github.com/users/c-schmitz/repos","events_url":"https://api.github.com/users/c-schmitz/events{/privacy}","received_events_url":"https://api.github.com/users/c-schmitz/received_events","type":"User","site_admin":false},"created_at":"2016-11-10T08:33:29Z","updated_at":"2016-11-10T08:33:29Z","body":"@cebe Setting logVars to en empty array works just fine as a workaround, thank you.\r\n@samdark So you are saying this is fixed in the latest version?"}}
{"actor":{"display_login":"c-schmitz"}}