{"name":"gelfling","version":"0.2.0","description":"Create and send GELF (Graylog2) messages, including chunking","author":{"name":"Michael Hart","email":"michael.hart.au@gmail.com","url":"http://github.com/mhart"},"main":"gelfling.js","keywords":["gelf","graylog","graylog2"],"repository":{"type":"git","url":"https://github.com/mhart/gelfling.git"},"license":"MIT","readme":"# GELF (Graylog2) messages in node.js\n\nIncludes chunked messages, so messages can be any size\n(couldn't find another node.js lib that does this)\n\n```javascript\nvar gelfling = require('gelfling')\n\nvar client = gelfling()\n\nclient.send('Message', function(err) { console.log('Sent') })\n\nclient.send({ short_message: 'Message', facility: 'myApp', level: gelfling.INFO })\n\nvar complexClient = gelfling('localhost', 12201, {\n  defaults: {\n    facility: 'myApp',\n    level: gelfling.INFO,\n    short_message: function(msg) { var txt = msg.txt; delete msg.txt; return txt }\n    myAvg: function(msg) { return msg.myTotal / msg.myCount }\n  }\n})\n\ncomplexClient.send({ txt: 'Hi', myTotal: 1337, myCount: 23 })\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/mhart/gelfling/issues"},"homepage":"https://github.com/mhart/gelfling","_id":"gelfling@0.2.0","_shasum":"23a13c366883adae32ecfd252a566be302b88dc3","_from":"https://registry.npmjs.org/gelfling/-/gelfling-0.2.0.tgz","_resolved":"https://registry.npmjs.org/gelfling/-/gelfling-0.2.0.tgz"}