Skip to content

Latest commit

 

History

History
46 lines (38 loc) · 961 Bytes

readme.md

File metadata and controls

46 lines (38 loc) · 961 Bytes

Syslogd

NPM version build status

nodejs syslog server, including syslog message parser

Install

npm install syslogd

Usage

var Syslogd = require('syslogd')
Syslogd(function(info) {
    /*
    info = {
          facility: 7
        , severity: 22
        , tag: 'tag'
        , time: Mon Dec 15 2014 10:58:44 GMT-0800 (PST)
        , hostname: 'hostname'
        , address: '127.0.0.1'
        , family: 'IPv4'
        , port: null
        , size: 39
        , msg: 'info'
    }
    */
}).listen(514, function(err) {
    console.log('start')
})

Check parser performance by npm run performance, which will run 500000 times