1.0.9 • Published 2 years ago

winston-http-batch-transport v1.0.9

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years 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

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago