{"_id":"ain2","_rev":"46-8fc9369d541afdc62651259b10692e14","name":"ain2","description":"Syslog logging for node.js. Continuation of ain","dist-tags":{"latest":"3.0.0"},"versions":{"0.0.2":{"name":"ain2","description":"Syslog logging for node.js. Continuation of ain","version":"0.0.2","main":"./index","author":{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},"contributors":[{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},{"name":"Patrick Huesler","email":"patrick.huesler@googlemail.com"}],"repository":{"type":"git","url":"git://github.com/phuesler/ain.git"},"bugs":{"url":"http://github.com/phuesler/ain/issues"},"licenses":[{"type":"MIT","url":"http://github.com/phuesler/ain/master/LICENSE"}],"_id":"ain2@0.0.2","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.9-1","_nodeVersion":"v0.4.9","_defaultsLoaded":true,"dist":{"shasum":"552711a090ff78f36541c8e50ab3d25a73e4fb67","tarball":"https://registry.npmjs.org/ain2/-/ain2-0.0.2.tgz","integrity":"sha512-8jhUqJSFkotgrXF0c6N1+uzByjmNbQ9c5wd9AKvDgWPzK52dAVxQSJh41tDSGmxPAAmC/SW7psk0Ee9abd9VQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBd5dEERMENrelQc3RF6X/app+9W4ruhTDjJCmoZoiFjAiEA6jHOoW1SK3vNTap+54K4XsydiXwk+zNFxCTwY2j4TsY="}]},"scripts":{},"maintainers":[{"name":"phuesler","email":"patrick.huesler@googlemail.com"}],"directories":{}},"0.0.3":{"name":"ain2","description":"Syslog logging for node.js. Continuation of ain","version":"0.0.3","main":"./index","author":{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},"contributors":[{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},{"name":"Patrick Huesler","email":"patrick.huesler@googlemail.com"},{"name":"Mark Wubben","email":"mark@novemberborn.net"}],"repository":{"type":"git","url":"git://github.com/phuesler/ain.git"},"bugs":{"url":"http://github.com/phuesler/ain/issues"},"licenses":[{"type":"MIT","url":"http://github.com/phuesler/ain/master/LICENSE"}],"dependencies":{},"devDependencies":{},"_id":"ain2@0.0.3","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.6","_nodeVersion":"v0.4.8","_defaultsLoaded":true,"dist":{"shasum":"7b0d9e40390375c3df1e1ec9ab8a8125be879276","tarball":"https://registry.npmjs.org/ain2/-/ain2-0.0.3.tgz","integrity":"sha512-DKauvljhojhcpFUaEy6chkyljEnVd1xp3uR830XW910wA2FwAQddHgEGCKFzFEjA+2vlZfQYywgc50jHQ6NcLA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB74L60o/g0UHkfNZD50yuztFpLNM/lYv3eFiRswDqwGAiBdVIFpaAd/+OuiaQ5GUAm8vNbHtCx+GocbjHOEHB496w=="}]},"scripts":{},"maintainers":[{"name":"phuesler","email":"patrick.huesler@googlemail.com"}],"directories":{}},"0.1.0":{"name":"ain2","description":"Syslog logging for node.js. Continuation of ain","version":"0.1.0","main":"./index","author":{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},"contributors":[{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},{"name":"Patrick Huesler","email":"patrick.huesler@googlemail.com"},{"name":"Mark Wubben","email":"mark@novemberborn.net"}],"repository":{"type":"git","url":"git://github.com/phuesler/ain.git"},"bugs":{"url":"http://github.com/phuesler/ain/issues"},"licenses":[{"type":"MIT","url":"http://github.com/phuesler/ain/master/LICENSE"}],"_npmJsonOpts":{"file":"/Users/phuesler/.npm/ain2/0.1.0/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"ain2@0.1.0","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.26","_nodeVersion":"v0.4.9","_defaultsLoaded":true,"dist":{"shasum":"34c05a8ef5719dbbf61d0bc3ec9255ce1ccd0f0d","tarball":"https://registry.npmjs.org/ain2/-/ain2-0.1.0.tgz","integrity":"sha512-1ROBEK90lLuc8xJuSUx8x+kMK8pr54A8cqy08guyNxZPGSbyIN5m5Uft6rIeYgLSZ2PBSJ57qWrIYQ6uY4woTQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWa+H6yRhi6/jylAhjvOpy20cP2hZ4F8NjbUaXOzIAhgIgeqc7Bo0YCoG/xBJ15nb0q2rtfUQzZvW72xHUONjYxtM="}]},"scripts":{},"maintainers":[{"name":"phuesler","email":"patrick.huesler@googlemail.com"}],"directories":{}},"0.2.0":{"name":"ain2","description":"Syslog logging for node.js. Continuation of ain","version":"0.2.0","main":"./index","author":{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},"contributors":[{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},{"name":"Patrick Huesler","email":"patrick.huesler@googlemail.com"},{"name":"Mark Wubben","email":"mark@novemberborn.net"},{"name":"Parham Michael Ossareh","email":"ossareh@gmail.com"}],"repository":{"type":"git","url":"git://github.com/phuesler/ain.git"},"bugs":{"url":"http://github.com/phuesler/ain/issues"},"licenses":[{"type":"MIT","url":"http://github.com/phuesler/ain/master/LICENSE"}],"_npmJsonOpts":{"file":"/Users/phuesler/.npm/ain2/0.2.0/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"ain2@0.2.0","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.26","_nodeVersion":"v0.5.9","_defaultsLoaded":true,"dist":{"shasum":"277dda3e4ea42165870ab2c2a6ef735450aea86c","tarball":"https://registry.npmjs.org/ain2/-/ain2-0.2.0.tgz","integrity":"sha512-ZU8xJgNCxbG2attRNTwhXjMNBXFNYWRnfTETUYp6C2kzRYOeTS0sJd0bo6cZad7EYtraFFxlFT20sq4twE+5JA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9VNWy1ADJJ8wHXTUgRoAhQMkyJQ8Ugk6mrgpaRKwuRwIgczFC4yxs0oZ6SCC+5wB+LbVdwSW8bdOGrcOhLhHHUy4="}]},"scripts":{},"maintainers":[{"name":"phuesler","email":"patrick.huesler@googlemail.com"}],"directories":{}},"0.2.1":{"name":"ain2","description":"Syslog logging for node.js. Continuation of ain","version":"0.2.1","main":"./index","author":{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},"contributors":[{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},{"name":"Patrick Huesler","email":"patrick.huesler@googlemail.com"},{"name":"Mark Wubben","email":"mark@novemberborn.net"},{"name":"Parham Michael Ossareh","email":"ossareh@gmail.com"}],"repository":{"type":"git","url":"git://github.com/phuesler/ain.git"},"bugs":{"url":"http://github.com/phuesler/ain/issues"},"licenses":[{"type":"MIT","url":"http://github.com/phuesler/ain/master/LICENSE"}],"_npmUser":{"name":"phuesler","email":"patrick.huesler@googlemail.com"},"_id":"ain2@0.2.1","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"8154d26433fd74a3148f15324299d8c665788bd8","tarball":"https://registry.npmjs.org/ain2/-/ain2-0.2.1.tgz","integrity":"sha512-0i6tVj0OMqSbGs8wTLYj6lbUpEqYMhSrTDxx2rxp5VguCtNLUG3y9uetRq7KkdhhR9O2L7KCQ2Angz7SHIoz8w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDv3+4ECrlpZhY1s2A84aVCSvDipDehUWAxPphGM9OmEAIgBxVcungh6ihVzQa5xIPfujPhhq8OyH7cTz6hitC8JXQ="}]},"maintainers":[{"name":"phuesler","email":"patrick.huesler@googlemail.com"}],"directories":{}},"1.0.0":{"name":"ain2","description":"Syslog logging for node.js. Continuation of ain","version":"1.0.0","main":"./index","author":{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},"contributors":[{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},{"name":"Patrick Huesler","email":"patrick.huesler@googlemail.com"},{"name":"Mark Wubben","email":"mark@novemberborn.net"},{"name":"Parham Michael Ossareh","email":"ossareh@gmail.com"}],"repository":{"type":"git","url":"git://github.com/phuesler/ain.git"},"bugs":{"url":"http://github.com/phuesler/ain/issues"},"licenses":[{"type":"MIT","url":"http://github.com/phuesler/ain/master/LICENSE"}],"_npmUser":{"name":"phuesler","email":"patrick.huesler@googlemail.com"},"_id":"ain2@1.0.0","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"bad777d94071e224d9b250c6c3d02fb2f3a35009","tarball":"https://registry.npmjs.org/ain2/-/ain2-1.0.0.tgz","integrity":"sha512-iBZVb2KVrQTMkUK99MIaUv/gfYxeAxocxnZy5JQux2zMCbAtgP0B0zG+VK67ETn5Z7wm3fundFeG6yb68DuY0Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7RqgSQFL0wGYulVXjx8wShvsV+VHEnz3mI+cSfM2lmwIhAIh6tb+hTplIYCT2SFm6RnwBQyEZuM3Ril+V/xaB9ecQ"}]},"maintainers":[{"name":"phuesler","email":"patrick.huesler@googlemail.com"}],"directories":{}},"1.1.0":{"name":"ain2","description":"Syslog logging for node.js. Continuation of ain","version":"1.1.0","main":"./index","author":{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},"contributors":[{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},{"name":"Patrick Huesler","email":"patrick.huesler@googlemail.com"},{"name":"Mark Wubben","email":"mark@novemberborn.net"},{"name":"Parham Michael Ossareh","email":"ossareh@gmail.com"}],"repository":{"type":"git","url":"git://github.com/phuesler/ain.git"},"bugs":{"url":"http://github.com/phuesler/ain/issues"},"licenses":[{"type":"MIT","url":"http://github.com/phuesler/ain/master/LICENSE"}],"_npmUser":{"name":"phuesler","email":"patrick.huesler@googlemail.com"},"_id":"ain2@1.1.0","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"7ad86218eeb95c86f5704bcaf9b65c005ca6545c","tarball":"https://registry.npmjs.org/ain2/-/ain2-1.1.0.tgz","integrity":"sha512-OjNBDTPkcf4i6MO49Reyhf+Me3O6E6kxbv1NCAWl0eZLZwUbaRuhbL5xySYfseME3Ks655AtrBVxTyYrJWP9oQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDH9n/1xA7nP2Nht3MTaAHkRkikI5swT4fYumxfqtITvgIhALSltCAqGaO/hM1jLXR3vmhUKqvQvshPJ+CoMW3cMFtZ"}]},"maintainers":[{"name":"phuesler","email":"patrick.huesler@googlemail.com"}],"directories":{}},"1.1.1":{"name":"ain2","description":"Syslog logging for node.js. Continuation of ain","version":"1.1.1","main":"./index","author":{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},"contributors":[{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},{"name":"Patrick Huesler","email":"patrick.huesler@googlemail.com"},{"name":"Mark Wubben","email":"mark@novemberborn.net"},{"name":"Parham Michael Ossareh","email":"ossareh@gmail.com"},{"name":"Carlos Lage","email":"carlos.lage@livestream.com"},{"name":"J. Maurice","email":"j@wiz.biz"}],"repository":{"type":"git","url":"http://github.com/phuesler/ain.git"},"bugs":{"url":"http://github.com/phuesler/ain/issues"},"licenses":[{"type":"MIT","url":"http://github.com/phuesler/ain/master/LICENSE"}],"_id":"ain2@1.1.1","dist":{"shasum":"2db7917f2f6883a9de68f77d79b6b89edc8662eb","tarball":"https://registry.npmjs.org/ain2/-/ain2-1.1.1.tgz","integrity":"sha512-DJdeuUX+ZkMM5SWsA9qicq/YuEaOBpCSljSiRyaK0eeG+XRi3RLg4DHNMLTwogU8C0Y27ZL/4TvyOm6Qu8SGDQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBxU/ZhhQoe32NZcCckthUpz++VU6Smeiu3V2Wx/GgLYAiEAq7PJNT2r/+0zoYheJlDWIW0UPZYJd9atOAJvABnIA/o="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"phuesler","email":"patrick.huesler@gmail.com"},"maintainers":[{"name":"phuesler","email":"patrick.huesler@googlemail.com"}],"directories":{}},"1.2.1":{"name":"ain2","description":"Syslog logging for node.js. Continuation of ain","version":"1.2.1","main":"./index","author":{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},"contributors":[{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},{"name":"Patrick Huesler","email":"patrick.huesler@googlemail.com"},{"name":"Mark Wubben","email":"mark@novemberborn.net"},{"name":"Parham Michael Ossareh","email":"ossareh@gmail.com"},{"name":"Carlos Lage","email":"carlos.lage@livestream.com"},{"name":"J. Maurice","email":"j@wiz.biz"}],"repository":{"type":"git","url":"http://github.com/phuesler/ain.git"},"bugs":{"url":"http://github.com/phuesler/ain/issues"},"licenses":[{"type":"MIT","url":"http://github.com/phuesler/ain/master/LICENSE"}],"_id":"ain2@1.2.1","dist":{"shasum":"0d114962bca8687511659564175ddecf82ff68c5","tarball":"https://registry.npmjs.org/ain2/-/ain2-1.2.1.tgz","integrity":"sha512-u133jP8eDbNJNNfV+gNrhZefWqEhZiHM5X446d4GZVWpXKzgmfhCYfXbpzE1hNjb8dYThEY+YpatIEoFKN4XYQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBvNq6qGvcTirDao0wmjginqCfWIFQ7ClohK9DJzMXdqAiBom7T/TWHJtoO1GJCsKauoZvgQg0roNnmtmOT78JINUA=="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"phuesler","email":"patrick.huesler@gmail.com"},"maintainers":[{"name":"phuesler","email":"patrick.huesler@googlemail.com"}],"directories":{}},"1.3.0":{"name":"ain2","description":"Syslog logging for node.js. Continuation of ain","version":"1.3.0","main":"./index","author":{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},"scripts":{"test":"./node_modules/.bin/mocha test/**/*.spec.js"},"contributors":[{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},{"name":"Patrick Huesler","email":"patrick.huesler@googlemail.com"},{"name":"Mark Wubben","email":"mark@novemberborn.net"},{"name":"Parham Michael Ossareh","email":"ossareh@gmail.com"},{"name":"Carlos Lage","email":"carlos.lage@livestream.com"},{"name":"J. Maurice","email":"j@wiz.biz"}],"repository":{"type":"git","url":"http://github.com/phuesler/ain.git"},"bugs":{"url":"http://github.com/phuesler/ain/issues"},"licenses":[{"type":"MIT","url":"http://github.com/phuesler/ain/master/LICENSE"}],"devDependencies":{"mocha":"~1.12.0","chai":"~1.7.2"},"optionalDependencies":{"unix-dgram":"0.0.3"},"dependencies":{"unix-dgram":"0.0.3"},"_id":"ain2@1.3.0","dist":{"shasum":"53856e9d79a3efde98fbe98d03ab4cabb0229bc6","tarball":"https://registry.npmjs.org/ain2/-/ain2-1.3.0.tgz","integrity":"sha512-8nALZaB4JWTV5aeaL9OXsTU7Vl0CQPuesTBRoOZhFShRR9+jQDQo0J05l0wBtN/hSKXfpAXdtRAGykqHk9Z88w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGsKJwPEeP+99xO216r1SzZRSrGrG0m+JXo0DWlwDxKoAiEA6eGqXNZfk30aY/RYeejXwGnvFV6xT6GYW9BpbSWEzcY="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"badunk","email":"baduncaduncan@gmail.com"},"maintainers":[{"name":"phuesler","email":"patrick.huesler@googlemail.com"},{"name":"badunk","email":"baduncaduncan@gmail.com"}],"directories":{}},"1.3.1":{"name":"ain2","description":"Syslog logging for node.js. Continuation of ain","version":"1.3.1","main":"./index","author":{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},"scripts":{"test":"./node_modules/.bin/mocha test/**/*.spec.js"},"contributors":[{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},{"name":"Patrick Huesler","email":"patrick.huesler@googlemail.com"},{"name":"Mark Wubben","email":"mark@novemberborn.net"},{"name":"Parham Michael Ossareh","email":"ossareh@gmail.com"},{"name":"Carlos Lage","email":"carlos.lage@livestream.com"},{"name":"J. Maurice","email":"j@wiz.biz"}],"repository":{"type":"git","url":"http://github.com/phuesler/ain.git"},"bugs":{"url":"http://github.com/phuesler/ain/issues"},"licenses":[{"type":"MIT","url":"http://github.com/phuesler/ain/master/LICENSE"}],"devDependencies":{"mocha":"~1.12.0","chai":"~1.7.2"},"optionalDependencies":{"unix-dgram":"0.0.3"},"dependencies":{"unix-dgram":"0.0.3"},"_id":"ain2@1.3.1","dist":{"shasum":"937a1f1e9abb6699849e2eac5ddb46f98b973058","tarball":"https://registry.npmjs.org/ain2/-/ain2-1.3.1.tgz","integrity":"sha512-Cxeg9NFclj32OJrVkTvd4tuRAtpCZFZUbdcWURJAxb12PxYR2W5eIqgOs23QhtlONv/uSF5iHqD25FeLTDZ+xw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC5ynYj2fFUC+I4DiE/Cu0zS7WdOF/RlGirucfX0ASrnAIhANlcSeKzcfr+bNrPsNff5cBvPK6chKKVbfgn/qTuDvVq"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"badunk","email":"baduncaduncan@gmail.com"},"maintainers":[{"name":"phuesler","email":"patrick.huesler@googlemail.com"},{"name":"badunk","email":"baduncaduncan@gmail.com"}],"directories":{}},"1.3.2":{"name":"ain2","description":"Syslog logging for node.js. Continuation of ain","version":"1.3.2","main":"./index","author":{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},"scripts":{"test":"./node_modules/.bin/mocha test/**/*.spec.js"},"contributors":[{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},{"name":"Patrick Huesler","email":"patrick.huesler@googlemail.com"},{"name":"Mark Wubben","email":"mark@novemberborn.net"},{"name":"Parham Michael Ossareh","email":"ossareh@gmail.com"},{"name":"Carlos Lage","email":"carlos.lage@livestream.com"},{"name":"J. Maurice","email":"j@wiz.biz"}],"repository":{"type":"git","url":"http://github.com/phuesler/ain.git"},"bugs":{"url":"http://github.com/phuesler/ain/issues"},"licenses":[{"type":"MIT","url":"http://github.com/phuesler/ain/master/LICENSE"}],"devDependencies":{"mocha":"~1.12.0","chai":"~1.7.2"},"optionalDependencies":{"unix-dgram":"0.0.5"},"homepage":"https://github.com/phuesler/ain","dependencies":{"unix-dgram":"0.0.5"},"_id":"ain2@1.3.2","dist":{"shasum":"90351662a1a65d035f8238129633d2aebe07f6d2","tarball":"https://registry.npmjs.org/ain2/-/ain2-1.3.2.tgz","integrity":"sha512-s3Azz6X+tZodFzeJHVeuazvsawPxBWNVNVI+HRYVMpnxtO5eZ2hQyrGPUUadhD3axkDwk6ajdNu4ATBRE8MFIQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICV7prWQ9QlSs8mlzzQjZJGx+7llItOzf/j/AUSLoohdAiEAlR8vp6o+Ovop2eW4AQThTSw8Uif5MDMBKzmqXr1Mryo="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"badunk","email":"baduncaduncan@gmail.com"},"maintainers":[{"name":"phuesler","email":"patrick.huesler@googlemail.com"},{"name":"badunk","email":"baduncaduncan@gmail.com"}],"directories":{}},"1.4.0":{"name":"ain2","description":"Syslog logging for node.js. Continuation of ain","version":"1.4.0","main":"./index","author":{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},"scripts":{"test":"./node_modules/.bin/mocha test/**/*.spec.js"},"contributors":[{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},{"name":"Patrick Huesler","email":"patrick.huesler@googlemail.com"},{"name":"Mark Wubben","email":"mark@novemberborn.net"},{"name":"Parham Michael Ossareh","email":"ossareh@gmail.com"},{"name":"Carlos Lage","email":"carlos.lage@livestream.com"},{"name":"J. Maurice","email":"j@wiz.biz"}],"repository":{"type":"git","url":"http://github.com/phuesler/ain.git"},"bugs":{"url":"http://github.com/phuesler/ain/issues"},"licenses":[{"type":"MIT","url":"http://github.com/phuesler/ain/master/LICENSE"}],"devDependencies":{"mocha":"~1.12.0","chai":"~1.7.2"},"optionalDependencies":{"unix-dgram":"0.1.1"},"dependencies":{"unix-dgram":"0.1.1"},"_id":"ain2@1.4.0","dist":{"shasum":"5143192f8b2e487f489456818f83805c8ec6008a","tarball":"https://registry.npmjs.org/ain2/-/ain2-1.4.0.tgz","integrity":"sha512-oFDWHmBgtQze7v+wCV3YFMYn8Mv0p7kGk2QXGYiYj4LQes6whqqdNh7LTi33F5pVwG8PK0Y7DxFFox0gcjG5IA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPZkF5u/UM9/mRjwHASwMK1zAxNZkvS/8/pFM+T7Nu/QIgDhN53fRF3lkzz57yTK7WMYlB3vAyyurOqAqnb/IWtGo="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"phuesler","email":"patrick.huesler@gmail.com"},"maintainers":[{"name":"phuesler","email":"patrick.huesler@googlemail.com"},{"name":"badunk","email":"baduncaduncan@gmail.com"}],"directories":{}},"1.5.0":{"name":"ain2","description":"Syslog logging for node.js. Continuation of ain","version":"1.5.0","main":"./index","author":{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},"scripts":{"test":"./node_modules/.bin/mocha test/**/*.spec.js"},"contributors":[{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},{"name":"Patrick Huesler","email":"patrick.huesler@googlemail.com"},{"name":"Mark Wubben","email":"mark@novemberborn.net"},{"name":"Parham Michael Ossareh","email":"ossareh@gmail.com"},{"name":"Carlos Lage","email":"carlos.lage@livestream.com"},{"name":"J. Maurice","email":"j@wiz.biz"}],"repository":{"type":"git","url":"http://github.com/phuesler/ain.git"},"bugs":{"url":"http://github.com/phuesler/ain/issues"},"licenses":[{"type":"MIT","url":"http://github.com/phuesler/ain/master/LICENSE"}],"devDependencies":{"mocha":"~1.12.0","chai":"~1.7.2"},"optionalDependencies":{"unix-dgram":"0.1.1"},"dependencies":{"unix-dgram":"0.1.1"},"_id":"ain2@1.5.0","dist":{"shasum":"1fdf19836f36a7b15dd66ce2e27c064c0c7985e7","tarball":"https://registry.npmjs.org/ain2/-/ain2-1.5.0.tgz","integrity":"sha512-4Behy2I8QXSEumRZYnb/Tl1TDaKgxtUeigaEmEkuJIiyM4Zq+jbbXfVhT2tJLSdfoEnXBfdAGX5VvgE++K7jzA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmNSBgBS8q7vtO+GelKUYFMpRenfXEdb/pF/MsFdh1agIhANA+Pw1yciR0On+PgoVJT6c8z3/NTYNJlBOXYjLbYpuR"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"phuesler","email":"patrick.huesler@gmail.com"},"maintainers":[{"name":"phuesler","email":"patrick.huesler@googlemail.com"},{"name":"badunk","email":"baduncaduncan@gmail.com"}],"directories":{}},"1.5.1":{"name":"ain2","description":"Syslog logging for node.js. Continuation of ain","version":"1.5.1","main":"./index","author":{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},"scripts":{"test":"mocha test/**/*.spec.js"},"contributors":[{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},{"name":"Patrick Huesler","email":"patrick.huesler@googlemail.com"},{"name":"Mark Wubben","email":"mark@novemberborn.net"},{"name":"Parham Michael Ossareh","email":"ossareh@gmail.com"},{"name":"Carlos Lage","email":"carlos.lage@livestream.com"},{"name":"J. Maurice","email":"j@wiz.biz"}],"repository":{"type":"git","url":"http://github.com/phuesler/ain.git"},"bugs":{"url":"http://github.com/phuesler/ain/issues"},"licenses":[{"type":"MIT","url":"http://github.com/phuesler/ain/master/LICENSE"}],"devDependencies":{"mocha":"~1.12.0","chai":"~1.7.2"},"optionalDependencies":{"unix-dgram":"0.1.1"},"gitHead":"1e973b6a7c250b53ff6c79743b8097b32774a1b5","homepage":"https://github.com/phuesler/ain","dependencies":{"unix-dgram":"0.1.1"},"_id":"ain2@1.5.1","_shasum":"4839fb7de1c59434fe0227fa6d4eddca863b0791","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"phuesler","email":"patrick.huesler@gmail.com"},"maintainers":[{"name":"phuesler","email":"patrick.huesler@googlemail.com"},{"name":"badunk","email":"baduncaduncan@gmail.com"}],"dist":{"shasum":"4839fb7de1c59434fe0227fa6d4eddca863b0791","tarball":"https://registry.npmjs.org/ain2/-/ain2-1.5.1.tgz","integrity":"sha512-wLamew5+YyC0IYYFAQTJAgTbZX1lVIdTIg0p/xRR5BW5imuYdrPsDWwk/um4OgPnP7+GM30N/B5WRJSgmp08Vg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBuchFh1kwS9H05UFWhOAUgW+Ejm/hn2wxcwJkju8m5gAiBjRI/xmxFg3f2JaYg8Ny/yD7ClJYnpHppeW7xpqsVL+Q=="}]},"directories":{}},"1.5.2":{"name":"ain2","description":"Syslog logging for node.js. Continuation of ain","version":"1.5.2","main":"./index","author":{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},"scripts":{"test":"mocha test/**/*.spec.js"},"contributors":[{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},{"name":"Patrick Huesler","email":"patrick.huesler@googlemail.com"},{"name":"Mark Wubben","email":"mark@novemberborn.net"},{"name":"Parham Michael Ossareh","email":"ossareh@gmail.com"},{"name":"Carlos Lage","email":"carlos.lage@livestream.com"},{"name":"J. Maurice","email":"j@wiz.biz"}],"repository":{"type":"git","url":"http://github.com/phuesler/ain.git"},"bugs":{"url":"http://github.com/phuesler/ain/issues"},"licenses":[{"type":"MIT","url":"http://github.com/phuesler/ain/master/LICENSE"}],"devDependencies":{"mocha":"~1.12.0","chai":"~1.7.2"},"optionalDependencies":{"unix-dgram":"0.1.1"},"gitHead":"70e32c10c2b247102c223253f3ee615cf079f596","homepage":"https://github.com/phuesler/ain","dependencies":{"unix-dgram":"0.1.1"},"_id":"ain2@1.5.2","_shasum":"3d4ca3e0959b06b25891031598420e9ade337b68","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"phuesler","email":"patrick.huesler@gmail.com"},"maintainers":[{"name":"phuesler","email":"patrick.huesler@googlemail.com"},{"name":"badunk","email":"baduncaduncan@gmail.com"}],"dist":{"shasum":"3d4ca3e0959b06b25891031598420e9ade337b68","tarball":"https://registry.npmjs.org/ain2/-/ain2-1.5.2.tgz","integrity":"sha512-nqUeMyNp3KX0wnlpkFpyrXPjDACUWRZdp4KmRF0Hkas7QMuEZOfctSByEg9J6TuAkbkJOiDIF6sjNz0l41dtCw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCY8e7s5uQaAs+PgUknlG84Vaf8pege2TpDWml6tg0yHwIgDqQrDymnNvFssP4flGddhOXRfiZx3gP9tKVKJ0CwzRY="}]},"directories":{}},"1.5.3":{"name":"ain2","description":"Syslog logging for node.js. Continuation of ain","version":"1.5.3","main":"./index","author":{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},"scripts":{"test":"mocha test/**/*.spec.js"},"contributors":[{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},{"name":"Patrick Huesler","email":"patrick.huesler@googlemail.com"},{"name":"Mark Wubben","email":"mark@novemberborn.net"},{"name":"Parham Michael Ossareh","email":"ossareh@gmail.com"},{"name":"Carlos Lage","email":"carlos.lage@livestream.com"},{"name":"J. Maurice","email":"j@wiz.biz"}],"repository":{"type":"git","url":"git+ssh://git@github.com/phuesler/ain.git"},"bugs":{"url":"http://github.com/phuesler/ain/issues"},"licenses":[{"type":"MIT","url":"http://github.com/phuesler/ain/master/LICENSE"}],"devDependencies":{"mocha":"~1.12.0","chai":"~1.7.2"},"optionalDependencies":{"unix-dgram":"0.2.2"},"gitHead":"e26d7511370851f60ba7956d17d3479f79768ae5","homepage":"https://github.com/phuesler/ain#readme","dependencies":{"unix-dgram":"0.2.2"},"_id":"ain2@1.5.3","_shasum":"b10ce24cfe0739db98d17416b4f809fce776cdc4","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.0","_npmUser":{"name":"badunk","email":"baduncaduncan@gmail.com"},"dist":{"shasum":"b10ce24cfe0739db98d17416b4f809fce776cdc4","tarball":"https://registry.npmjs.org/ain2/-/ain2-1.5.3.tgz","integrity":"sha512-c30Hes7riAXU/Q8RvSazrRXup6nzRzmUDAexAan8eSWtDKBDU3a7M/cayrg3iCPz39FcvtZheqjIb45aVDVEqA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDz2wRk31xsfJcQ1tBndAc4R4FDXf5W8STDTYyFoa5CqwIga7TPYrdWfTZpCC/OIUSghLEdr5WlwD3tAwsf+OTEetc="}]},"maintainers":[{"name":"phuesler","email":"patrick.huesler@googlemail.com"},{"name":"badunk","email":"baduncaduncan@gmail.com"}],"directories":{}},"2.0.0":{"name":"ain2","description":"Syslog logging for node.js. Continuation of ain","version":"2.0.0","main":"./index","author":{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},"scripts":{"test":"mocha test/**/*.spec.js"},"contributors":[{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},{"name":"Patrick Huesler","email":"patrick.huesler@gmail.com"},{"name":"Mark Wubben","email":"mark@novemberborn.net"},{"name":"Parham Michael Ossareh","email":"ossareh@gmail.com"},{"name":"Carlos Lage","email":"carlos.lage@livestream.com"},{"name":"J. Maurice","email":"j@wiz.biz"},{"name":"Joseph Frazier","url":"josephfrazier"}],"repository":{"type":"git","url":"git+ssh://git@github.com/phuesler/ain.git"},"bugs":{"url":"http://github.com/phuesler/ain/issues"},"license":"MIT","licenses":[{"type":"MIT","url":"http://github.com/phuesler/ain/master/LICENSE"}],"devDependencies":{"mocha":"~1.12.0","chai":"~1.7.2"},"optionalDependencies":{"unix-dgram":"0.2.3"},"gitHead":"d4f714829dac047f329028246786a9bb59b7c0ea","homepage":"https://github.com/phuesler/ain#readme","dependencies":{"unix-dgram":"0.2.3"},"_id":"ain2@2.0.0","_shasum":"561d0da0bcc4971ce80db0b4e2a27c0830c9c298","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.0.0","_npmUser":{"name":"phuesler","email":"patrick.huesler@googlemail.com"},"dist":{"shasum":"561d0da0bcc4971ce80db0b4e2a27c0830c9c298","tarball":"https://registry.npmjs.org/ain2/-/ain2-2.0.0.tgz","integrity":"sha512-mQbxBfcR/dsHrVEXPZC1eoyToyHtF9PdugwH8U+PPvw/ZaOKDymRyfdDrT7Z13rqZ0B5OD6xMADuiZLi+Am6MA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBAYXd44cz6v1378L3gR3h4781SMUvkMCe64qL+aOachAiEAwXAwefplM6q8AGLBN8vpFVh4kUlDgxObDee2iRWR7e4="}]},"maintainers":[{"name":"phuesler","email":"patrick.huesler@googlemail.com"},{"name":"badunk","email":"baduncaduncan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ain2-2.0.0.tgz_1462536491107_0.3934473677072674"},"directories":{}},"3.0.0":{"name":"ain2","description":"Syslog logging for node.js. Continuation of ain","version":"3.0.0","main":"./index","author":{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},"scripts":{"test":"mocha test/**/*.spec.js"},"contributors":[{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},{"name":"Patrick Huesler","email":"patrick.huesler@gmail.com"},{"name":"Mark Wubben","email":"mark@novemberborn.net"},{"name":"Parham Michael Ossareh","email":"ossareh@gmail.com"},{"name":"Carlos Lage","email":"carlos.lage@livestream.com"},{"name":"J. Maurice","email":"j@wiz.biz"},{"name":"Joseph Frazier","url":"josephfrazier"}],"repository":{"type":"git","url":"git+ssh://git@github.com/phuesler/ain.git"},"bugs":{"url":"http://github.com/phuesler/ain/issues"},"license":"MIT","licenses":[{"type":"MIT","url":"http://github.com/phuesler/ain/master/LICENSE"}],"devDependencies":{"mocha":"~1.12.0","chai":"~1.7.2"},"optionalDependencies":{"unix-dgram":"^2.0.2"},"gitHead":"32fa7d082e5dd12cd0f8b7a2a22ae2499d282bb9","homepage":"https://github.com/phuesler/ain#readme","dependencies":{"unix-dgram":"^2.0.2"},"_id":"ain2@3.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"phuesler","email":"patrick.huesler@googlemail.com"},"dist":{"integrity":"sha512-Kqlo2NOCMpCSlGaGBWM86lWrPM1wLkyeq9HLKH7Jzi3GoQg8yT+W09M/nKjgPrFgUSZa/jf//OKRBTcy9MqHug==","shasum":"f93bfc448c49964d2fbbd8c78021eb9a47a497a0","tarball":"https://registry.npmjs.org/ain2/-/ain2-3.0.0.tgz","fileCount":16,"unpackedSize":35565,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb6tUOCRA9TVsSAnZWagAA9SEP/3Eda998UwScERd3tDu+\n9mk4Iw0bQ+MIiyY/OLgAbtyIFij0D7qCtPOJWh7vLQYoocCf8oEFUyv8jll8\nHGzk6lCcxc4VhNzP/kTSIykK+BBxaFE/EBusMMuidvOKcVp3FPOhkEvwKgq/\nyV63oL4dDwoldheD1SpUBkyMgXDP04IiKgMwdqiZZJBUIdVGUR7CVl8r1WJv\nGzT5ccl/o4Uz5ZbeCfMj/sXxwRi0t9ykhwe7GhDEjPuesdq1haS3N6KO5KOg\nAzY2PpnpRCXxSj80ttdAOXuk6C5//IK4j2FF1NktFsesE3MQ1zfstEuQYOQ0\nX5pJqjdITvDnPcOgVy3AgCC0Qs7oKJulx2cfZi0NG4tK4DtiZuO5ZW83twIK\ncmo1ZDampwIy+AbsAO4c9Gy//Hak4kojrWb4+Lb5g5TD+lGWD1YN/GcVVHBq\n2HdXP76oge5lVzitjr3Vppl93c921tV6VxNwFCJdDK6XtmkRhx74kd6IemNh\nSDgwFXGmlzOeXIih9vIpY1MFXs9TV7FHunj9FbY1523F8VqUIT0Yi/6mCStU\nTuNeNeSn3rZUTfUGMO+8GowYzYku9+e/iXVOIsjE0olFs8UM3E4DMAZXkyhZ\n0K05mB/Gz4+Hto4OgcM7IARR/eDgx6Xxof1FRRGVWOhyH6+OYQZH8E/wGzFs\nkgAg\r\n=El4d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVGgwW8UG6RW6rj7jeaAfaNyeIKBK+m039pRKA0h7NmQIhAIcPjIr+sBAcRsd/PSVXs9KwUdK0fzVdelb1AbPYlGJ8"}]},"maintainers":[{"name":"badunk","email":"baduncaduncan@gmail.com"},{"name":"phuesler","email":"patrick.huesler@googlemail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ain2_3.0.0_1542116622027_0.7799885054556397"},"_hasShrinkwrap":false}},"maintainers":[{"name":"badunk","email":"baduncaduncan@gmail.com"},{"name":"phuesler","email":"patrick.huesler@googlemail.com"}],"time":{"modified":"2022-06-13T02:32:27.058Z","created":"2011-08-16T17:02:51.398Z","0.0.2":"2011-08-16T17:02:52.842Z","0.0.3":"2011-09-13T20:01:19.259Z","0.1.0":"2011-09-28T13:23:10.726Z","0.2.0":"2011-10-17T13:31:55.289Z","0.2.1":"2011-11-23T16:26:56.130Z","1.0.0":"2012-01-02T16:39:07.074Z","1.1.0":"2012-02-04T10:25:24.868Z","1.1.1":"2012-11-24T17:00:30.682Z","1.2.1":"2012-12-01T14:09:54.711Z","1.3.0":"2013-10-22T05:34:53.215Z","1.3.1":"2013-10-22T06:07:13.017Z","1.3.2":"2014-02-13T18:58:43.468Z","1.4.0":"2015-01-11T16:10:39.347Z","1.5.0":"2015-01-12T15:42:55.254Z","1.5.1":"2015-02-18T19:59:33.515Z","1.5.2":"2015-02-23T10:42:45.193Z","1.5.3":"2015-10-01T08:13:20.199Z","2.0.0":"2016-05-06T12:08:13.654Z","3.0.0":"2018-11-13T13:43:42.201Z"},"author":{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/phuesler/ain.git"},"readme":"# ain*\r\n\r\n\r\nBrain-free [syslog](http://en.wikipedia.org/wiki/Syslog)** logging for\r\n[node.js](http://nodejs.org).\r\n\r\n*Ain* is written with full compatibility with *node.js* `console` module. It\r\nimplements all `console` functions and formatting. Also *ain* supports UTF-8\r\n(tested on Debian Testing/Sid).\r\n\r\n*Ain* can send messages by UDP to `127.0.0.1:514` or to the a unix socket;\r\n/dev/log on Linux and /var/run/syslog on Mac OS X.  Unix socket support is possible if [unix-dgram](https://npmjs.org/package/unix-dgram) can be built and installed.\r\n\r\n*In the Phoenician alphabet letter \"ain\" indicates eye.\r\n\r\n**All examples tested under Ubuntu `rsyslog`. On other operating\r\nsystems and logging daemons settings and paths may differ.\r\n\r\n## Installation\r\n\r\nYou can install *ain* as usual - by copy the \"ain\" directory in your\r\n`~/.node_modules` or via *npm*\r\n\r\n    npm install ain2\r\n\r\n## Usage\r\n\r\nUsage of *ain* is very similar to the *node.js* console. The following example\r\ndemonstrates the replacement of the console:\r\n\r\n```javascript\r\n\r\nvar SysLogger = require('ain2');\r\nvar console = new SysLogger();\r\n\r\nconsole.log('notice: %d', Date.now());\r\nconsole.info('info');\r\nconsole.error('error');\r\n```\r\n\r\nAfter launch in `/var/log/user` you can see the following:\r\n\r\n    Dec  5 06:45:26 localhost ex.js[6041]: notice: 1291513526013\r\n    Dec  5 06:45:26 localhost ex.js[6041]: info\r\n    Dec  5 06:45:26 localhost ex.js[6041]: error\r\n\r\nNote: you need to ensure syslog is listening on UDP port 514 for this example to work.  On Ubuntu, for example, you would need to edit ```/etc/rsyslog.conf```, add/uncomment the following lines, and ensure rsyslog is restarted:\r\n\r\n```\r\n# provides UDP syslog reception\r\n$ModLoad imudp\r\n$UDPServerAddress 127.0.0.1\r\n$UDPServerRun 514\r\n```\r\n\r\n## Singleton logger\r\n\r\nIf you want to have a singleton that points to the same object whenever you do a require, use the following:\r\n\r\n```javascript\r\nrequire('ain2').getInstance();\r\n```\r\n\r\nIf you use this, please be beware of this:\r\n\r\n```javascript\r\nrequire('ain2').getInstance() ===  require('ain2').getInstance();\r\n=> true\r\n```\r\n\r\nAs opposed to:\r\n\r\n```javascript\r\nvar SysLogger = require('ain2');\r\nnew SysLogger() === new SysLogger();\r\n=> false\r\n```\r\n\r\n## Changing destinations\r\n\r\nBy default *ain* sets following destinations:\r\n\r\n* `TAG` - `__filename`\r\n* `Facility` - user (1)\r\n* `HOSTNAME` - localhost\r\n* `PORT` - 514\r\n* `Transport` - UDP\r\n\r\nYou can change them by passing in the params to the constructor or by\r\nusing the `set` function. The `set` function is chainable.\r\n\r\n\r\n```javascript\r\nvar SysLogger = require('ain2');\r\nvar logger = new SysLogger({tag: 'node-test-app', facility: 'daemon', hostname: 'devhost', port: 3000});\r\n\r\nlogger.warn('some warning');\r\n```\r\n\r\n... and in `/var/log/daemon.log`:\r\n\r\n    Dec  5 07:08:58 devhost node-test-app[10045]: some warning\r\n\r\nThe `set` function takes one argument, a configuration object which can contain the following keys:\r\n * tag - defaults to __filename\r\n * facility - defaults to user\r\n * hostname - defaults to require('os').hostname()\r\n * port - defaults to 514\r\n * transport - defaults to 'UDP'\r\n * path - path to filesystem socket if using unix_dgram transport\r\n * messageComposer - a custom function to compose syslog messages\r\n\r\nAll of these are optional. If you provide a `hostname` transport is automatically set to UDP\r\n\r\n`tag` and `hostname` arguments is just *RFC 3164* `TAG` and `HOSTNAME` of\r\nyour messages.\r\n\r\n`facility` is little more than just name. Refer to *Section 4.1.1* of\r\n[RFC 3164](http://www.faqs.org/rfcs/rfc3164.html) it can be:\r\n\r\n    ##  String  Description\r\n    -----------------------\r\n     0  kern    kernel messages\r\n     1  user    user-level messages\r\n     2  mail    mail system\r\n     3  daemon  system daemons\r\n     4  auth    security/authorization messages\r\n     5  syslog  messages generated internally by syslog daemon\r\n     6  lpr     line printer subsystem\r\n     7  news    network news subsystem\r\n     8  uucp    UUCP subsystem\r\n    16  local0  local use 0\r\n    17  local1  local use 1\r\n    18  local2  local use 2\r\n    19  local3  local use 3\r\n    20  local4  local use 4\r\n    21  local5  local use 5\r\n    22  local6  local use 6\r\n    23  local7  local use 7\r\n\r\nYou can set the `facility` by `String` or `Number`:\r\n\r\n    logger.set({tag: 'node-test-app', facility: 3});\r\n    logger.set({tag: 'node-test-app', facility: 'daemon'});\r\n\r\nAlso you can set `TAG`, `Facility`, `HOSTNAME`, `PORT`, and `transport` separately by `setTag`,\r\n`setFacility`, `setHostname`, `setPort`, `setTransport` and `setMessageComposer` functions. All of them are chainable too.\r\n\r\nYou can get all destinations by these properties:\r\n\r\n* `tag` TAG\r\n* `facility` Numerical representation of RFC 3164 facility\r\n* `hostname` HOSTNAME\r\n* `port` PORT\r\n\r\n## Callbacks\r\n\r\nAin provides an optional callback after a message has been sent to the socket (udp and unix socket).\r\nThe callback is passed up unaltered from [node.](http://nodejs.org/api/dgram.html#dgram_socket_send_buf_offset_length_port_address_callback)\r\nBecause ain supports a simplified printf format, the callback has to be the last parameter.\r\n\r\n\r\n```javascript\r\nvar SysLogger = require('ain2');\r\nvar console = new SysLogger();\r\n\r\nconsole.info('info', function(err, bytes){\r\n  // callback received\r\n});\r\nconsole.log('notice: %d', Date.now(), function(err, bytes){\r\n  // callback received\r\n});\r\n\r\n```\r\n\r\n## Custom message composer\r\n\r\n\r\n```javascript\r\nvar SysLogger = require('ain2');\r\nvar console = new SysLogger();\r\n\r\nconsole.setMessageComposer(function(message, severity){\r\n    return new Buffer('<' + (this.facility * 8 + severity) + '>' +\r\n            this.getDate() + ' ' + '[' + process.pid + ']:' + message);\r\n});\r\n```\r\n\r\nThe default implementation looks this:\r\n\r\n\r\n```javascript\r\nSysLogger.prototype.composeSyslogMessage = function(message, severity) {\r\n    return new Buffer('<' + (this.facility * 8 + severity) + '>' +\r\n            this.getDate() + ' ' + this.hostname + ' ' +\r\n            this.tag + '[' + process.pid + ']:' + message);\r\n}\r\n```\r\n\r\n## Logging\r\n\r\nAs noticed before *ain* implements all `console` functions. Severity level is\r\nreferenced to [RFC 3164](http://www.faqs.org/rfcs/rfc3164.html):\r\n\r\n    #  String   Description\r\n    -----------------------\r\n    0  emerg    Emergency: system is unusable\r\n    1  alert    Alert: action must be taken immediately\r\n    2  crit     Critical: critical conditions\r\n    3  err      Error: error conditions\r\n    4  warn     Warning: warning conditions\r\n    5  notice   Notice: normal but significant condition\r\n    6  info     Informational: informational messages\r\n    7  debug    Debug: debug-level messages\r\n\r\n*Ain* `console`-like functions behaviour is fully compatible to *node.js* and\r\nlogs messages with different severity levels:\r\n\r\n* `log` - notice (5)\r\n* `info` - info (6)\r\n* `warn` - warn (4)\r\n* `error` - err (3)\r\n* `dir` - notice (5)\r\n* `time`, `timeEnd` - notice (5)\r\n* `trace` - err (3)\r\n* `assert` - err (3)\r\n\r\nTo log a message with the desired severity level you can use the `send` function:\r\n\r\n```javascript\r\nlogger.send('message', 'alert');\r\n```\r\n\r\nThe `send` function takes two arguments: message and optional severity level. By\r\ndefault, the severity level is *notice*.\r\n\r\n# Development\r\n\r\n    npm install\r\n    npm test\r\n","readmeFilename":"readme.md","contributors":[{"name":"Alexander Dorofeev","email":"aka.spin@gmail.com"},{"name":"Patrick Huesler","email":"patrick.huesler@gmail.com"},{"name":"Mark Wubben","email":"mark@novemberborn.net"},{"name":"Parham Michael Ossareh","email":"ossareh@gmail.com"},{"name":"Carlos Lage","email":"carlos.lage@livestream.com"},{"name":"J. Maurice","email":"j@wiz.biz"},{"name":"Joseph Frazier","url":"josephfrazier"}],"bugs":{"url":"http://github.com/phuesler/ain/issues"},"homepage":"https://github.com/phuesler/ain#readme","license":"MIT","users":{"princetoad":true}}