{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/9270","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/9270/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/9270/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/9270/events","html_url":"https://github.com/yiisoft/yii2/issues/9270","id":98383095,"number":9270,"title":"Log in MongoDB","user":{"login":"thiagotalma","id":612578,"avatar_url":"https://avatars.githubusercontent.com/u/612578?v=3","gravatar_id":"","url":"https://api.github.com/users/thiagotalma","html_url":"https://github.com/thiagotalma","followers_url":"https://api.github.com/users/thiagotalma/followers","following_url":"https://api.github.com/users/thiagotalma/following{/other_user}","gists_url":"https://api.github.com/users/thiagotalma/gists{/gist_id}","starred_url":"https://api.github.com/users/thiagotalma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiagotalma/subscriptions","organizations_url":"https://api.github.com/users/thiagotalma/orgs","repos_url":"https://api.github.com/users/thiagotalma/repos","events_url":"https://api.github.com/users/thiagotalma/events{/privacy}","received_events_url":"https://api.github.com/users/thiagotalma/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii2/labels/feature:mongodb","name":"feature:mongodb","color":"c7def8"},{"url":"https://api.github.com/repos/yiisoft/yii2/labels/status:need%20more%20info","name":"status:need more info","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-31T12:41:01Z","updated_at":"2015-08-01T18:49:07Z","closed_at":"2015-08-01T18:49:07Z","body":"Today I went to test write the log using MongoDB and found that it's not possible.\r\n\r\n>Invalid Configuration – yii\\base\\InvalidConfigException\r\n\r\n>\"mongodb\" refers to a yii\\mongodb\\Connection component. yii\\db\\Connection is expected.\r\n\r\n\r\nI honestly do not even know MongoDB enough to understand why.\r\nIt is a limitation of MongoDB or Yii2?\r\n\r\nOr, ask them: save the log in MongoDB is not a good idea, thinking about performance?"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/126944810","html_url":"https://github.com/yiisoft/yii2/issues/9270#issuecomment-126944810","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/9270","id":126944810,"user":{"login":"klimov-paul","id":1482054,"avatar_url":"https://avatars.githubusercontent.com/u/1482054?v=3","gravatar_id":"","url":"https://api.github.com/users/klimov-paul","html_url":"https://github.com/klimov-paul","followers_url":"https://api.github.com/users/klimov-paul/followers","following_url":"https://api.github.com/users/klimov-paul/following{/other_user}","gists_url":"https://api.github.com/users/klimov-paul/gists{/gist_id}","starred_url":"https://api.github.com/users/klimov-paul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klimov-paul/subscriptions","organizations_url":"https://api.github.com/users/klimov-paul/orgs","repos_url":"https://api.github.com/users/klimov-paul/repos","events_url":"https://api.github.com/users/klimov-paul/events{/privacy}","received_events_url":"https://api.github.com/users/klimov-paul/received_events","type":"User","site_admin":false},"created_at":"2015-08-01T18:49:07Z","updated_at":"2015-08-01T18:49:07Z","body":"You should use MongoDbTarget:\r\nhttps://github.com/yiisoft/yii2-mongodb/blob/master/log/MongoDbTarget.php"}}