1.0.0 • Published 8 years ago

bunyan-tcp2 v1.0.0

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

bunyan-tcp2

A fork of bunyan-tcp with backoff reconnection support.

reconnect usage:

var tcpStream = bunyanTcp.createBunyanStream({
  server: 'my.logging.server',
  port: 1234,
  backoffStrategy: {
    name: 'fibonacci'(default)|'exponential',
    initialDelay: 300(default),
    maxDelay: 10000(default)
  }|[BackoffStrategy instance],
  retryNum: 10(default)
});

var log = bunyan.createLogger({
    name: 'log',
    streams: [
        {
          level: 'info',
          stream: tcpStream,
          type: 'raw',
          closeOnExit: true
        }
    ]
});
1.0.0

8 years ago