Coder Social home page Coder Social logo

logmatic-js's People

Contributors

egueidan avatar guillaumepotier avatar renaudboutet avatar xcambar avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

logmatic-js's Issues

setBulkOptions not working for lingerMs

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.

Logs during window.unload do not work properly

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.

protect logmatic.js from circular structure

Hello GOD

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 ?

Alternative to logmatic-js (at Datadog)?

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)

Messages are not sending in Firefox

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?

Adding meta

I want to add meta (not replace existing ones)

Make the lib compatible with node apps

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.

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.