miktam / loggly Goto Github PK
View Code? Open in Web Editor NEWMeteor client implementation for Loggly cloud Logging-as-a-Service API.
License: MIT License
Meteor client implementation for Loggly cloud Logging-as-a-Service API.
License: MIT License
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
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?
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
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');
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.