1.0.3 • Published 3 years ago

lumberjack-client v1.0.3

Weekly downloads
4
License
ISC
Repository
github
Last release
3 years ago

lumberjack-client

This is a small Lumberjack V2 client supporting JSON data, compression and TLS sockets. The client will do its best to reconnect when disconnected, queuing its outgoing messages as necessary.

Socket

const client = new LumberjackClient({
  host: 'localhost',
  port: 5044,
})

client.log({
  '@timestamp': new Date()
  host: {
    hostname: os.hostname(),
  },
  message: 'hello world',
})

TLS Socket

const client = new LumberjackClient({
  host: 'localhost',
  port: 5044,
  cert: fs.readFileSync('client.crt'),
  key: fs.readFileSync('client.key'),
  ca: [fs.readFileSync('ca.pem')],
}, true)

client.log({
  '@timestamp': new Date()
  host: {
    hostname: os.hostname(),
  },
  message: 'hello tls server',
})
1.0.3

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago