logmatic / logmatic-js Goto Github PK
View Code? Open in Web Editor NEWClient-side JavaScript logging library for Logmatic.io
Client-side JavaScript logging library for Logmatic.io
The lingerMs option is not working when using setBulkOptions.
Indeed, when using it, it sets the varaiable _bulkLingerMs
. However, the only moment this variable is used is at script first launch
var _lingerManager = createLingerManager(_bulkLingerMs);
We should drop this parameter when creating the manager and instead use the global _bulkLingerMs
variable.
I'm trying to log some info when we exit the page (on window.beforeunload event). However, because of the async mechanism of the logging, the log is not always sent before the page unloads.
There should be a mechanism allowing sync logging or flushing to avoid this issue.
when we debug javascript we cannot use correctly our console log because logmatic-js try to convert circular structure into JSON (yeah infinite loop).
so I need to stop logmatic-js to see my log.
Uncaught TypeError: Converting circular structure to JSON
at JSON.stringify (<anonymous>)
at eval (eval at 194 (****/1.logmatic-js.js:6:2), <anonymous>:303:49)
at Array.map (native)
at Object.console.(anonymous function) [as log]
can you path/prevent this for the next version ?
Hello,
I used to be a very happy Logmatic user. I liked its ability to easily aggregate both my backend and frontend logs. I do have that requirement again. Since then, Logmatic was acquired by Datadog, which only seems to offer server-side logs aggregation (along with some monitoring things that I might not need). Any suggestion is welcome…
Thanks (and sorry for the rather inappropriate channel I used for that question)
Hello,
It would be very useful to have logmatic-js available on NPM (https://www.npmjs.com/)
Here is some documentation about publishing on NPM: https://docs.npmjs.com/getting-started/publishing-npm-packages
Thanks
Hi,
I'm testing logmatic-js with my custom endpoint, and I think there is a problem in Firefox (v. 57.0.1) . The messages are not sending.
After some investigation I think that the problem is in line:
// Defer the callback
_alarm = setTimeout(_callback, timeMs);
The callback with post is not executed in Firefox.
I also found similar problem here with the solution:
https://stackoverflow.com/questions/4267239/settimeout-doesnt-seem-to-be-working-in-firefox
Can you check that?
I want to add meta (not replace existing ones)
Just like algolia, I would like to see that lib compatible "out of npm" with a node app.
Actually I saw a solution in your documentation, to use winston to push to logmatic, but it's not very convenient way...
I'm not sure but it might not be very hard to do so as the lib only require to import XMLHttpRequest module from npm.
Just to clarify, we don't have to replace the values in the method calls, it corresponds to the attribute names in the sent JSON.
Am I wrong ? Could you update the documentation please ?
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.