{"_id":"syslog","_rev":"9-89199d800f406680d33cbe7e0112a292","name":"syslog","description":"Syslog-ng TCP client, with basic fault-tolerance.","dist-tags":{"latest":"0.1.1-1"},"versions":{"0.1.0":{"name":"syslog","description":"Syslog-ng TCP client, with basic fault-tolerance.","url":"http://github.com/cloudhead/node-syslog","keywords":["syslog","logger"],"author":{"name":"Alexis Sellier","email":"self@cloudhead.net"},"contributors":[],"version":"0.1.0","main":"./lib/node-syslog","directories":{"lib":"./lib"},"engines":{"node":">=0.3.6"},"_id":"syslog@0.1.0","_engineSupported":true,"_npmVersion":"0.2.16","_nodeVersion":"v0.3.7","modules":{"node-syslog.js":"lib/node-syslog.js"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"ff46bc7e8755ac9747a77d453a70a1f08ba7d58d","tarball":"https://registry.npmjs.org/syslog/-/syslog-0.1.0.tgz","integrity":"sha512-lkWh0FQ35LJVqJlUXghf9BgOr8xfrQukxvurPLGfSte9ZLZUTVJfawXlgHXlU1YeKLZ3ENahWFQHLL632h0IIA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID3eMdLGzIQQztxEGnn16vLHq8vQx3yrgwfUVlUzpWvFAiA5xzhfF9fCPULhSgHJbS69S2G7yiRPX5gLtk0ktQjgug=="}]}},"0.1.1":{"name":"syslog","description":"Syslog-ng TCP client, with basic fault-tolerance.","url":"http://github.com/cloudhead/node-syslog","keywords":["syslog","logger"],"author":{"name":"Alexis Sellier","email":"self@cloudhead.net"},"contributors":[],"version":"0.1.1","main":"./lib/node-syslog","directories":{"lib":"./lib"},"engines":{"node":">=0.4.2"},"_id":"syslog@0.1.1","_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.4.5","files":[""],"_defaultsLoaded":true,"dist":{"shasum":"675d8210898e785fd14c831de2d9a6aec0a35cbd","tarball":"https://registry.npmjs.org/syslog/-/syslog-0.1.1.tgz","integrity":"sha512-bWIVJ/f4F3GweVvnwpCbahsuargMRIQjFbw3fK+8SFtvZldAcOf4gpviRawuVVHtq5HabxC39poHuZNdqAs2Aw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAH1utWyNDnb4cM+1J6E5WHJYWfFTdc76o41sHlj49oYAiEA7MqMCnX429Fq82NnPQerA9b4PEcTHe+B2Y7vZ9XvboU="}]}},"0.1.1-1":{"name":"syslog","description":"Syslog-ng TCP client, with basic fault-tolerance.","url":"http://github.com/cloudhead/node-syslog","keywords":["syslog","logger"],"author":{"name":"Alexis Sellier","email":"self@cloudhead.net"},"contributors":[],"version":"0.1.1-1","main":"./lib/node-syslog","directories":{"lib":"./lib"},"engines":{"node":">=0.4.2"},"gitHead":"783ebb347e58bd172fe5eca387d5f026e4902e73","_id":"syslog@0.1.1-1","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"cloudhead","email":"self@cloudhead.net"},"dist":{"integrity":"sha512-7fn4sikkTRrc4kZk/i/ItCktnPD2qG+nKmgTVcuLr2VrY2V9adNhw9fN02HL6rTthwu2Og9Icr1GxZlaLp39Lg==","shasum":"f69f74b0baf8a25c725af97977a18eb11927a5e1","tarball":"https://registry.npmjs.org/syslog/-/syslog-0.1.1-1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGRsbg3nCLb2H48LZFv52+3lGaorndYxVgSCpcVYO/nGAiEAvaECrv0636y0+F4BFJKKJBC/veqGqrmVQLhT6I1EVt8="}]},"maintainers":[{"name":"cloudhead","email":"self@cloudhead.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/syslog-0.1.1-1.tgz_1517050305572_0.616797320311889"}}},"maintainers":[{"name":"cloudhead","email":"self@cloudhead.net"}],"time":{"modified":"2022-06-27T03:17:46.493Z","created":"2011-01-28T21:41:47.032Z","0.1.0":"2011-01-28T21:41:47.161Z","0.1.1":"2011-04-10T22:13:50.786Z","0.1.1-1":"2018-01-27T10:51:46.525Z"},"author":{"name":"Alexis Sellier","email":"self@cloudhead.net"},"readme":"\nnode-syslog\n===========\n\n> Syslog-ng TCP client for node, with basic fault-tolerance.\n\ninstallation\n------------\n\n    $ npm install syslog\n\nsynopsis\n--------\n    \n    var syslog = require('syslog');\n    var logger = syslog.createClient(514, 'localhost');\n\n    logger.info(\"ping!\");\n\nlog levels\n----------\n\nIn increasing order of severity:\n\n- debug\n- info\n- notice\n- warning\n- error\n- crit\n- alert\n- emerg\n\nThese are available as methods on Client, ex: `logger.crit()`.\n\nYou may also call the `log` method, and pass the level as the 2nd argument:\n\n    logger.log('fnord!', syslog.LOG_CRIT);\n\nThe default level is `info`.\n\nconfiguration\n-------------\n\nYou will have to configure your syslog server to accept TCP connections.\nThis is usually done in `/etc/syslog-ng.conf`. Let's say you have an app called `fnord`,\nthe configuration would look something like this:\n\n    source tcp_s {\n      tcp(ip(0.0.0.0) port(514) max-connections(256));\n    };\n    destination fnord_d {\n      file(\"/var/log/fnord.log\");\n    };\n    log { source(tcp_s); destination(fnord_d); };\n\nIf you have multiple apps which need to log via TCP, you can specify filters, as such:\n\n    filter fnord_f { program(\"fnord\"); };\n\nThen modify the log statement to read:\n\n    log { source(tcp_s); filter(fnord_f); destination(fnord_d); };\n\nNow if you have another app, called `bnord`, create similar `destination` and `filter` configurations for it,\nand specify a new log statement, with the same `source`:\n\n    log { source(tcp_s); filter(bnord_f); destination(bnord_d); };\n\nFor this to work, you have to make sure you set the `process.title` variable in your node app.\n\n    process.title = 'fnord';\n\nAlternatively, you can pass it as an option to `createClient`:\n\n    syslog.createClient(514, 'localhost', { name: 'fnord' });\n\nlicense\n-------\n\nSee `LICENSE` file.\n\n> Copyright (c) 2011 Alexis Sellier\n\n","keywords":["syslog","logger"],"contributors":[],"readmeFilename":"README.md"}