Giter Club home page Giter Club logo

bananas's People

Contributors

hueniverse avatar iamdoron avatar kpdecker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bananas's Issues

Option to force plugin to apply to root server

In some cases, you want to load the plugin before creating connections for server.log() access but then any connection added after will be missed. This adds the root option which will listen on the server.root instead of the selected connections and will apply to the entire server.

Error data is not logged

 {
  "event": "server",
  "timestamp": 1462048183528,
  "host": "02f8a84b728b",
  "tags": [
    "internal",
    "implementation",
    "error"
  ],
  "data": {
    "domain": {
      "_events": {},
      "_eventsCount": 1,
      "members": []
    },
    "domainThrown": true
  }
} 

JSON.stringify does not serialize the important fields of Error instances. Doing something like this in my application-layer logging:

  if (info instanceof Error) {
    info = {...info, message: info.message, stack: info.stack};
  }

Logs fail completely when circular object is passed in

https://github.com/hueniverse/bananas/blob/master/lib/index.js#L40

.../bananas/lib/index.js:40
        const payload = holder.map(JSON.stringify).join('\n');
                               ^

TypeError: Converting circular structure to JSON
    at stringify (native)
    at Array.map (native)
    at [object Object].flush [as _repeat] (.../bananas/lib/index.js:40:32)
    at [object Object].wrapper [as _onTimeout] (timers.js:275:19)
    at Timer.listOnTimeout (timers.js:92:15)

Which blocks any sort of error data from being sent to loggly. Ideally some sort of tracking data for this would be logged with an additional error noting that the logging is failing.

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.