2017-08-07 130 views
0

我想爲我的流星應用程序設置某種日誌記錄,並選擇Loggly,我讀this article,但我無法讓客戶端實現工作。客戶端Loggly流星1.4.1


// 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

回答