我正在尝试为我的流星应用程序设置某种日志记录,我选择了Loggly,我读了这篇文章,但是我无法让客户端实现工作。
// 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
发布于 2017-08-07 15:28:36
根据https://github.com/clinical-meteor/winston-browser-logging/blob/master/package.js的说法,这应该是Winston,而不是winston。
https://stackoverflow.com/questions/45550409
复制相似问题