main.js 403 B

1234567891011121314151617181920
  1. /**
  2. * @file server/main.js
  3. */
  4. import { Meteor } from 'meteor/meteor';
  5. import { Mongo } from "meteor/mongo";
  6. import { WebApp } from "meteor/webapp";
  7. import {
  8. ServerLogger,
  9. MongodbSender,
  10. TrivialStrategy,
  11. } from "filog";
  12. Meteor.startup(() => {
  13. const sender = new MongodbSender(Mongo);
  14. const strategy = new TrivialStrategy(sender);
  15. global.logger = new ServerLogger(strategy, WebApp);
  16. });