{"repo":"pinojs/pino-mongodb","free":true,"listed":false,"github":"https://github.com/pinojs/pino-mongodb","clone":"git clone https://github.com/pinojs/pino-mongodb.git","description":":evergreen_tree: Insert JSON from stdin into MongoDB","language":"JavaScript","stars":59,"topics":["mongodb","insert","pino-mongodb","pino-logs","nodejs","logging"],"license":"MIT","category":"analytics","readme_excerpt":"pino-mongodb Insert JSON from stdin into MongoDB This project is part of the pino logger family, however you can use it to parse and insert any JSON into the mongo . Install Usage as Pino Transport You can use this module as a pino transport like so: The mongoOptions is provided to the the standard mongodb client. All the available options are described on its official documentation. Note that you may encouter missing logs in special cases: it dependes on data and mongo's version. Please checkout the mongodb limitation official documentation. For example on MongoDB 4: If you want a custom parser to handle the above case. You need to wrap pino-mongo and pass a function through option.parseLine . Any value that is not a function will be ignored in this option. Usage as Pino Legacy Transport Pino supports a legacy transport interface that is still supported by this module. Get started CLI Options Tests To run unit tests: To run integrational tests with real mongo server: Note, you will have to have docker and docker-compose installed on your machine for that! License Licensed under MIT.","default_branch":null,"files":null,"tree":[],"storefront":"/r/pinojs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pinojs/pino-mongodb/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}