sullivan-sean / node-winston-tcp

TCP transport for Winston

Home Page:https://www.npmjs.com/package/winston-tcp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Winston TCP

TCP transport for Winston

license version super linter test release

Install

npm install --only=production --save winston-tcp

API

const winston = require('winston')
const Transport = require('winston-tcp')

const logger = winston.createLogger({
  level: 'info',
  transports: [
    new Transport({
      host: '127.0.0.1',
      port: 1337
    })
  ],
})

Options

Name Description Default
host The host to connect to none
port The server port to connect to none
reconnectInterval Time to pause between disconnect and reconnect (in ms) 1000
bufferLength Number of messages to buffer while disconnected, set to false for unlimited 10000

About

TCP transport for Winston

https://www.npmjs.com/package/winston-tcp

License:ISC License


Languages

Language:JavaScript 100.0%