{"action":"created","issue":{"url":"https://api.github.com/repos/pinojs/pino/issues/109","repository_url":"https://api.github.com/repos/pinojs/pino","labels_url":"https://api.github.com/repos/pinojs/pino/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/pinojs/pino/issues/109/comments","events_url":"https://api.github.com/repos/pinojs/pino/issues/109/events","html_url":"https://github.com/pinojs/pino/issues/109","id":184187357,"number":109,"title":"Can we work with Mongo? ","user":{"login":"ViktorKonsta","id":12882743,"avatar_url":"https://avatars.githubusercontent.com/u/12882743?v=3","gravatar_id":"","url":"https://api.github.com/users/ViktorKonsta","html_url":"https://github.com/ViktorKonsta","followers_url":"https://api.github.com/users/ViktorKonsta/followers","following_url":"https://api.github.com/users/ViktorKonsta/following{/other_user}","gists_url":"https://api.github.com/users/ViktorKonsta/gists{/gist_id}","starred_url":"https://api.github.com/users/ViktorKonsta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ViktorKonsta/subscriptions","organizations_url":"https://api.github.com/users/ViktorKonsta/orgs","repos_url":"https://api.github.com/users/ViktorKonsta/repos","events_url":"https://api.github.com/users/ViktorKonsta/events{/privacy}","received_events_url":"https://api.github.com/users/ViktorKonsta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-10-20T10:07:09Z","updated_at":"2016-11-14T08:09:44Z","closed_at":null,"body":"May be we can add a transport or extend `pino-socket` to use it with MongoDB which will be a brilliant?\nThanks\n"},"comment":{"url":"https://api.github.com/repos/pinojs/pino/issues/comments/260272301","html_url":"https://github.com/pinojs/pino/issues/109#issuecomment-260272301","issue_url":"https://api.github.com/repos/pinojs/pino/issues/109","id":260272301,"user":{"login":"mcollina","id":52195,"avatar_url":"https://avatars.githubusercontent.com/u/52195?v=3","gravatar_id":"","url":"https://api.github.com/users/mcollina","html_url":"https://github.com/mcollina","followers_url":"https://api.github.com/users/mcollina/followers","following_url":"https://api.github.com/users/mcollina/following{/other_user}","gists_url":"https://api.github.com/users/mcollina/gists{/gist_id}","starred_url":"https://api.github.com/users/mcollina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcollina/subscriptions","organizations_url":"https://api.github.com/users/mcollina/orgs","repos_url":"https://api.github.com/users/mcollina/repos","events_url":"https://api.github.com/users/mcollina/events{/privacy}","received_events_url":"https://api.github.com/users/mcollina/received_events","type":"User","site_admin":false},"created_at":"2016-11-14T08:09:44Z","updated_at":"2016-11-14T08:09:44Z","body":"Wow!\r\n\r\nSome notes:\r\n\r\na) There is no need to call write, we can probably just do `process.stdin.pipe(process.stdout)`\r\nb) do not use `on('data')`, as it will not support backpressure: writing to mongo _might_ be slower than the amount of logs that your app is producing. You can use streams! See how it is done in pino-elasticsearch https://github.com/pinojs/pino-elasticsearch/blob/master/pino-elasticsearch.js#L37-L83. (`writev` is for bulk writes, it increases the ingestion speed drammatically.\r\nc) `'use string'`  at the beginning is missing\r\nd) tests are missing :(, they are extremely important, especially to guarantee that the library works across different versions of MongoDB (that has been a problem in the past for me). "}}
{"actor":{"display_login":"mcollina"}}