outmoded / bananas Goto Github PK
View Code? Open in Web Editor NEWMinimal Loggly hapi plugin
License: Other
Minimal Loggly hapi plugin
License: Other
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.
{
"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};
}
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.
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.