An adapter stream bunyan events to a TCP socket (with backoff reconnection and buffering)

Usage no npm install needed!

<script type="module">
  import bunyanTcp2 from 'https://cdn.skypack.dev/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