Logger object was not created on the Meteor Server
trymbill opened this issue · comments
Magnús commented
Even though I'm following the README and creating the Logger object on the server I'm still getting the "Logger object was not created on the Meteor Server" error when trying to log from the client.
This is what I have in server/main.js:
Meteor.startup(function () {
Logger = new Loggly({
token: "######-####-####-####-#############",
subdomain: "#######",
auth: {
username: "#######",
password: "#################################"
},
json: true
});
});
Running this in console:
Logger.info('Testing, 123');