level | string | info |
---|---|---|
server | string | os.hostname() |
host | string | "127.0.0.1" |
port | number | 9999 |
application | string | process.title |
pid | string | process.pid |
tags | array|string[] | ["bunyan"] |
var log = bunyan.createLogger({
streams: [
{
type: "raw",
stream: require('bunyan-logstash').createStream({
host: '127.0.0.1',
port: 5505
})
}
]
});