{"repo":"veliovgroup/Meteor-logger-mongo","free":true,"listed":false,"github":"https://github.com/veliovgroup/Meteor-logger-mongo","clone":"git clone https://github.com/veliovgroup/Meteor-logger-mongo.git","description":"🍃 Meteor Logging: Store application log messages in MongoDB","language":"JavaScript","stars":23,"topics":["mongodb-collections","javascript","mongodb","mongo","logging","logs","logging-library","meteor","meteorjs","meteor-package"],"license":"BSD-3-Clause","category":"analytics","readme_excerpt":"Logging: To MongoDB MongoDB adapter for logger driver. Store application's logs and messages in MongoDB. Whenever you log message(s) on Client or Sever, it goes directly into MongoDB. Features: - 👷‍♂️ 100% tests coverage; - 💪 Flexible log level filters; - 👨‍💻 userId is automatically passed and logged, data is associated with logged-in user; - 📟 Pass logs from Client to MongoDB on Server ; - 🕷 Catch all browser's errors and exceptions. Installation: Compatibility - Meteor 2.14–3.4. - Meteor 3 requires ostrio:logger ≥ 2.2.0 - Uses Mongo.Collection (not Meteor.Collection , removed in Meteor 3) Agent skill Covers ostrio:logger and all adapters. ES6 Import: Usage Initialize Logger instance and pass it into LoggerMongo constructor to enable logging into the log file. Initialization [ Isomorphic ] new LoggerMongo(LoggerInstance, options) - LoggerInstance { Logger } - from new Logger() - options { Object } - options.collection { Mongo.Collection } - Use to pass your own MongoDB collection instance, { Mongo.Collection } returned from new Mongo.Collection() - options.collectionName { String } - MongoDB collection name, default: ostrioMongoLogger - options.format { Function } - Must return plain object, which will be used as log-record. Arguments: - opts { Object } - opts.userId { String } - opts.date { Date } - Report date - opts.timestamp { Number } - Report timestamp in milliseconds - opts.level { String } - Message level, one of: ERROR , FATAL , WARN , DEBUG , INFO , TRACE , -","default_branch":null,"files":null,"tree":[],"storefront":"/r/veliovgroup","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/veliovgroup/Meteor-logger-mongo/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."}