【问题标题】:Client-side Loggly Meteor 1.4.1客户端 Loggly Meteor 1.4.1
【发布时间】:2018-01-14 23:11:34
【问题描述】:

我正在尝试为我的流星应用程序设置某种日志记录并选择了 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

【问题讨论】:

    标签: meteor winston loggly


    【解决方案1】:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-06-08
      • 2013-06-08
      • 2017-04-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-05-27
      • 2015-08-23
      相关资源
      最近更新 更多