1.0.9 • Published 12 months ago

winston-http-batch-transport v1.0.9

Weekly downloads
-
License
ISC
Repository
github
Last release
12 months ago

Winston HTTP log transport

NPM Package

Pushes compressed winston logs to HTTP server with batching

Usage:

const { createLogger, transports, format } = require('winston')
const HttpBatchTransport = require('winston-http-batch-transport')

module.exports = createLogger({
  format: format.combine(
    format.timestamp(),
    format.json()
  ),
  transports: [
    new transports.Console(),
    new HttpBatchTransport({
      url: 'http://google.com/log',
      environment: 'production',
      project: 'test',
      batchSize: 100,
      batchTimeout: 5 * 60 * 1000
    })
  ],
  exitOnError: false
})
1.0.9

12 months ago

1.0.8

12 months ago

1.0.7

12 months ago

1.0.6

12 months ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago