miktam / loggly

Meteor client implementation for Loggly cloud Logging-as-a-Service API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logger object was not created on the Meteor Server

trymbill opened this issue · comments

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');