客户端Loggly Meteor 1.4.1

时间:2017-08-07 15:18:50

标签: meteor winston loggly

我试图为我的meteor应用程序设置某种日志记录并选择Loggly,我阅读this article,但我无法让客户端实现工作。

// in startup/client/loggly-client.js

import { Meteor } from 'meteor/meteor';
import { winston } from 'meteor/clinical:winston-browser-logging';

winston.info("winston-client has started on the client!");
// in startup/client/index.js

import './loggly-client.js';
import './routes.js';

错误我得到的是Uncaught TypeError: Cannot read property 'info' of undefined

1 个答案:

答案 0 :(得分:0)

根据https://github.com/clinical-meteor/winston-browser-logging/blob/master/package.js,它应该是[0, 1] [1, 2] [0, 3] [1, 4] ,而不是Winston