GithubHelp home page GithubHelp logo

loggly's People

Contributors

art1sec8 avatar awatson1978 avatar joaopiopedreira avatar miktam avatar trymbill avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

loggly's Issues

ReferenceError: check is not defined

In trying to run Logger.log("first log from meteor"); I get this error in the server console:

I20160908-10:01:15.519(-7)? Exception while invoking method 'logglyLog' ReferenceError: check is not defined
I20160908-10:01:15.520(-7)?     at [object Object].Meteor.methods.logglyLog (packages/miktam_loggly/logglyMeteorMethods.js:3:1)
I20160908-10:01:15.522(-7)?     at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1711:12)
I20160908-10:01:15.522(-7)?     at packages/ddp-server/livedata_server.js:711:19
I20160908-10:01:15.523(-7)?     at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
I20160908-10:01:15.524(-7)?     at packages/ddp-server/livedata_server.js:709:40
I20160908-10:01:15.524(-7)?     at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)
I20160908-10:01:15.524(-7)?     at packages/ddp-server/livedata_server.js:707:46
I20160908-10:01:15.525(-7)?     at Session.method (packages/ddp-server/livedata_server.js:681:23)
I20160908-10:01:15.529(-7)?     at packages/ddp-server/livedata_server.js:551:43

client only?

when you say a "client implementation" do you mean this works only from client side in meteor?
or that it is a "loggly client" that will work both client and server side?

Simple log not working

Hello Guys,

We have updated loggly package to latest one and following log giving error at server methods.

Logger.log("first log from meteor");

Exception while invoking method 'logglyLog' { stack: 'Error: Match error: Expected object, got string\n at check (packages/check/match.js:33:1)\n at [object Object].Meteor.methods.logglyLog (packages/miktam_loggly/logglyMeteorMethods.js:15:1)\n at [object Object].methodMap.(anonymous function) (packages/meteorhacks_kadira/lib/hijack/wrap_session.js:164:1)\n at maybeAuditArgumentChecks (livedata_server.js:1698:12)\n at livedata_server.js:708:19\n at [object Object]..extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)\n at livedata_server.js:706:40\n at [object Object]..extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)\n at livedata_server.js:704:46\n at tryCallTwo (/home/user/.meteor/packages/promise/.0.5.1.dd284g++os+web.browser+web.cordova/npm/node_modules/meteor-promise/node_modules/promise/lib/core.js:45:5)

Thanks,
Mit

Logger object was not created on the Meteor Server

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

Loggly not found, Loggly not defined - meteor 1.4.1.1

Hi there,

After installing this and following instructions both from there and from Loggly [ https://www.loggly.com/blog/managing-a-meteor-application-in-production-three-real-log-management-use-cases ]

using either methods throws this server side error:

W20161004-22:59:54.047(0)? (STDERR) Loggly not found in settings.json
W20161004-22:59:54.125(0)? (STDERR) /root/.meteor/packages/meteor-tool/.1.4.1_1.1hxvprr++os.linux.x86_64+web.browser+we
b.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:280
W20161004-22:59:54.127(0)? (STDERR)                                             throw(ex);
W20161004-22:59:54.129(0)? (STDERR)                                             ^
W20161004-22:59:54.130(0)? (STDERR) 
W20161004-22:59:54.133(0)? (STDERR) ReferenceError: Loggly is not defined
W20161004-22:59:54.134(0)? (STDERR)     at server/main.js:7:15
W20161004-22:59:54.135(0)? (STDERR)     at /root/ap/.meteor/local/build/programs/server/boot.js:299:5

my server main.js looks like this (with details removed):

import { Meteor } from 'meteor/meteor';


Meteor.startup(() => {
  // code to run on server at startup


    Logger = new Loggly({
        token: "crazy-long-token",
        subdomain: "sdomain",
        auth: {
          username: "un",
          password: "pass"
        },
        //
        // Optional: Tag to send with EVERY log message
        //
        tags: ['global-tag'],
        // Optional: logs will be stored in JSON format
        json: true
      });

    Logger.log({message:"first log from meteor"});
});

Putting this in settings.json as recommended in the README didn't help either - same issue.

Any help would be fantastic.

thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.