{"_id":"gelf","_rev":"14-ea1ed960d57dfcdf1c9a2752182eaf1a","name":"gelf","description":"gelf is a full implementation for sending messages in GELF (Graylog Extended Log Format) from node.js","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.0":{"name":"gelf","description":"gelf is a full implementation for sending messages in GELF (Graylog Extended Log Format) from node.js","version":"1.0.0","license":"MIT","author":{"name":"Robert Kowalski","email":"rok@kowalski.gd"},"contributors":[{"name":"Robert Kowalski","email":"rok@kowalski.gd"}],"repository":{"type":"git","url":"https://github.com/robertkowalski/gelf-node.git"},"scripts":{"test":"make"},"main":"gelf.js","engines":{"node":">=0.6.0"},"dependencies":{},"devDependencies":{"chai":"","mocha":"","sinon-chai":"","sinon":""},"keywords":["graylog","gelf","log","logging"],"_id":"gelf@1.0.0","dist":{"shasum":"3832622b6ebaec0b08c4da6a5a8cd9c972bf8d5f","tarball":"https://registry.npmjs.org/gelf/-/gelf-1.0.0.tgz","integrity":"sha512-CGQGhbwfnM+wvgQbDiZV00Qu245612pDdNSaw2TbVgrScPTiXfnlmLO+9Idb/kylV49+IFErYthR7i5Gg+21gg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXtpF+8dEZhRsj9Of9oUtRYxv2PeIfd9/SrmNK8+LVdgIgdDtSt1NJCl70+Zzw5VL4RegxJ3D2wyG8+wWI+nhbbLM="}]},"maintainers":[{"name":"robertkowalski","email":"rok@kowalski.gd"}],"directories":{}},"1.0.1":{"name":"gelf","description":"gelf is a full implementation for sending messages in GELF (Graylog Extended Log Format) from node.js","version":"1.0.1","license":"MIT","author":{"name":"Robert Kowalski","email":"rok@kowalski.gd"},"contributors":[{"name":"Robert Kowalski","email":"rok@kowalski.gd"}],"repository":{"type":"git","url":"https://github.com/robertkowalski/gelf-node.git"},"scripts":{"test":"make"},"main":"gelf.js","engines":{"node":">=0.6.0"},"dependencies":{},"devDependencies":{"chai":"","mocha":"","sinon-chai":"","sinon":""},"keywords":["graylog","gelf","log","logging"],"_id":"gelf@1.0.1","dist":{"shasum":"7fea7249e16ccc20c2bcde3942b5c4442b92536f","tarball":"https://registry.npmjs.org/gelf/-/gelf-1.0.1.tgz","integrity":"sha512-jHyoseXj7HCMJcM4McRXwUlLF8VEutvbFbtx6sqdoUwraaEbGs4URciIMxbqB4dgyxraPfpTWqmmCah7FY5+JA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHBTumMbumFobYAiLgAQvUy3c1Upajw7sYI8GRBT0HT8AiAMLgQ0O+2+fSAe28JRPENpNaCd6O0+IWmxiqUAhEXqyQ=="}]},"maintainers":[{"name":"robertkowalski","email":"rok@kowalski.gd"}],"directories":{}},"1.0.2":{"name":"gelf","description":"gelf is a full implementation for sending messages in GELF (Graylog Extended Log Format) from node.js","version":"1.0.2","license":"MIT","author":{"name":"Robert Kowalski","email":"rok@kowalski.gd"},"contributors":[{"name":"Robert Kowalski","email":"rok@kowalski.gd"}],"repository":{"type":"git","url":"https://github.com/robertkowalski/gelf-node.git"},"scripts":{"test":"make"},"main":"gelf.js","engines":{"node":">=0.6.0"},"dependencies":{},"devDependencies":{"chai":"","mocha":"","sinon-chai":"","sinon":""},"keywords":["graylog","gelf","log","logging"],"_id":"gelf@1.0.2","dist":{"shasum":"30772fd80e30b1c66fc216a9b78b69adda72bbea","tarball":"https://registry.npmjs.org/gelf/-/gelf-1.0.2.tgz","integrity":"sha512-Pv/MG6DIFL6JBMqmFwhd0IKSWRE8SvodHupAYW1ZuO1SSSi+JlDGGaLbSqxXTyREUxw/CplI9GeYvlEIncHsWA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGvKbBpOiCR0X3PGZJmgpDJeZLbqHpml6ugTvO1+3fGwAiEA/c8WLYXlZrJlsAV+lcseaR7FPXzP5IxYFs+GxDq+2tM="}]},"_npmVersion":"1.1.49","_npmUser":{"name":"robertkowalski","email":"rok@kowalski.gd"},"maintainers":[{"name":"robertkowalski","email":"rok@kowalski.gd"}],"directories":{}},"1.0.3":{"name":"gelf","description":"gelf is a full implementation for sending messages in GELF (Graylog Extended Log Format) from node.js","version":"1.0.3","license":"MIT","author":{"name":"Robert Kowalski","email":"rok@kowalski.gd"},"contributors":[{"name":"Robert Kowalski","email":"rok@kowalski.gd"}],"repository":{"type":"git","url":"https://github.com/robertkowalski/gelf-node.git"},"scripts":{"test":"make"},"main":"gelf.js","engines":{"node":">=0.6.0"},"dependencies":{},"devDependencies":{"chai":"","mocha":"","sinon-chai":"","sinon":""},"keywords":["graylog","gelf","log","logging"],"_id":"gelf@1.0.3","dist":{"shasum":"69e942612f44b535ea29b051f7d425a771e8466f","tarball":"https://registry.npmjs.org/gelf/-/gelf-1.0.3.tgz","integrity":"sha512-sTTS6bx1opcZsC5aE/dBkPfVmkHJrkAu1/Xru9YcksPOr7O/7LBHeSzNvHj3/mwfAo39NriWjZ2PUdoe2KJaYA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxQ6NdW1pN7d0hRYSb3sV71sJ8zD4ldwrHiNiBy3OpmAIhAMfYYXJDeQTUTJj8cPKfg5wztC48Lngzr344vD2PkKfi"}]},"_npmVersion":"1.1.65","_npmUser":{"name":"robertkowalski","email":"rok@kowalski.gd"},"maintainers":[{"name":"robertkowalski","email":"rok@kowalski.gd"}],"directories":{}},"2.0.0":{"name":"gelf","description":"gelf is a full implementation for sending messages in GELF (Graylog Extended Log Format) from node.js","version":"2.0.0","license":"MIT","author":{"name":"Robert Kowalski","email":"rok@kowalski.gd"},"repository":{"type":"git","url":"git+https://github.com/robertkowalski/gelf-node.git"},"scripts":{"test":"npm run lint && npm run unit","lint":"standard","unit":"mocha"},"main":"gelf.js","engines":{"node":">=8.0"},"keywords":["graylog","gelf","log","logging"],"devDependencies":{"mocha":"^4.0.1","standard":"^10.0.3"},"dependencies":{"async":"^2.5.0"},"gitHead":"f077caa4d1eb748e76579031575bd43996865b51","bugs":{"url":"https://github.com/robertkowalski/gelf-node/issues"},"homepage":"https://github.com/robertkowalski/gelf-node#readme","_id":"gelf@2.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.7.0","_npmUser":{"name":"robertkowalski","email":"rok@kowalski.gd"},"dist":{"integrity":"sha512-kbdrvNEFupaXpAuvqW95qpEREp5TmzotzhlV4r6OzXMegrKrNLRwZaaHianbrvaEoxA6jupVwnc5vB9tDQwq7w==","shasum":"ae462f698abcf020b94db0f48777da92b3d5f3bb","tarball":"https://registry.npmjs.org/gelf/-/gelf-2.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHMRVfROhdRPcBlkdhMK+2F4GW2itwY9WTptBmY9aVPkAiB3RQ9/lVnMALoT0Zg88r/ExjH5Z+gIYyj0H+nF9tX0Ow=="}]},"maintainers":[{"name":"robertkowalski","email":"rok@kowalski.gd"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gelf-2.0.0.tgz_1509914381221_0.7952845280524343"},"directories":{}},"2.0.1":{"name":"gelf","description":"gelf is a full implementation for sending messages in GELF (Graylog Extended Log Format) from node.js","version":"2.0.1","license":"MIT","author":{"name":"Robert Kowalski","email":"rok@kowalski.gd"},"repository":{"type":"git","url":"git+https://github.com/robertkowalski/gelf-node.git"},"scripts":{"test":"npm run lint && npm run unit","lint":"standard","unit":"mocha"},"main":"gelf.js","engines":{"node":">=8.0"},"keywords":["graylog","gelf","log","logging"],"devDependencies":{"mocha":"^4.0.1","standard":"^10.0.3"},"dependencies":{"async":"^2.5.0"},"gitHead":"d763aaf599d215a699dfee860181603f77b97871","bugs":{"url":"https://github.com/robertkowalski/gelf-node/issues"},"homepage":"https://github.com/robertkowalski/gelf-node#readme","_id":"gelf@2.0.1","_npmVersion":"5.6.0","_nodeVersion":"9.6.1","_npmUser":{"name":"robertkowalski","email":"rok@kowalski.gd"},"dist":{"integrity":"sha512-77duTNPkUgcwFRl+kbmPx2YGMF4e030xBVVsKix5mruTAjuROW36WxmpVSk8MkiZC1D68JYNNb+kfJeZG/D5VQ==","shasum":"3973c746b09f62de6cf05811407939471158bb0e","tarball":"https://registry.npmjs.org/gelf/-/gelf-2.0.1.tgz","fileCount":5,"unpackedSize":6925,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDAx/3eVaimKRZAyJYfKj+/9Qs28Ju0hLz61tP0a2cRXgIhAM1CajI4elRtdR7XL1eEBnPR7GfRvmUMrzedWeFOJZq8"}]},"maintainers":[{"name":"robertkowalski","email":"rok@kowalski.gd"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gelf_2.0.1_1523456050171_0.5320088817669153"},"_hasShrinkwrap":false}},"readme":"[![build status](https://secure.travis-ci.org/robertkowalski/gelf-node.png)](http://travis-ci.org/robertkowalski/gelf-node)\n\n# gelf-node\n\n## gelf-node is a full implementation for sending messages in GELF (Graylog Extended Log Format) from node.js\n\n## Install\n\n```\nnpm install gelf\n```\n\n## Example Usage\n\n### Initialize with defaults\n\n```js\nconst Gelf = require('gelf')\nconst gelf = new Gelf() // with default config\n\ngelf.on('error', (err) => {\n  console.log('ouch!', err)\n})\n```\n\n### Initialize with custom config\n\n```js\nconst Gelf = require('gelf')\nconst gelf = new Gelf({\n  graylogPort: 12201,\n  graylogHostname: '127.0.0.1',\n  connection: 'wan',\n  maxChunkSizeWan: 1420,\n  maxChunkSizeLan: 8154\n})\n```\n\n### sending Messages\n\n```js\n// send just a shortmessage\ngelf.emit('gelf.log', 'myshortmessage')\n\n// send a full message\nconst message = {\n  \"version\": \"1.0\",\n  \"host\": \"www1\",\n  \"short_message\": \"Short message\",\n  \"full_message\": \"Backtrace here\\n\\nmore stuff\",\n  \"timestamp\": Date.now() / 1000,\n  \"level\": 1,\n  \"facility\": \"payment-backend\",\n  \"file\": \"/var/www/somefile.rb\",\n  \"line\": 356,\n  \"_user_id\": 42,\n  \"_something_else\": \"foo\"\n}\n\ngelf.emit('gelf.log', message);\n```\n\n## Events\n\n### 'error'\n\nEmitted for errors\n\n### 'gelf.log'\n\nLogs a short or full message\n\n## Methods\n\n### closeSocket\n\nCloses the UDP Socket\n\n### openSocket\n\nOpens the Socket\n\n## Tests\n\n```\nnpm run test\n```\n","maintainers":[{"name":"robertkowalski","email":"rok@kowalski.gd"}],"time":{"modified":"2022-06-18T05:14:37.666Z","created":"2012-07-20T12:20:19.002Z","1.0.0":"2012-07-20T12:20:20.840Z","1.0.1":"2012-08-16T18:55:24.987Z","1.0.2":"2012-09-06T21:31:29.160Z","1.0.3":"2012-11-17T13:46:32.641Z","2.0.0":"2017-11-05T20:39:42.175Z","2.0.1":"2018-04-11T14:14:10.455Z"},"author":{"name":"Robert Kowalski","email":"rok@kowalski.gd"},"repository":{"type":"git","url":"git+https://github.com/robertkowalski/gelf-node.git"},"homepage":"https://github.com/robertkowalski/gelf-node#readme","keywords":["graylog","gelf","log","logging"],"bugs":{"url":"https://github.com/robertkowalski/gelf-node/issues"},"license":"MIT","readmeFilename":"README.md"}