Skip to content

yumenohosi/winston-s3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

winston-s3

A full featured S3 transport for winston

Install

npm i -S winston winston-s3

Setup

var winston = require('winston')
  , winstonS3 = require('winston-s3')

winston.add(winstonS3, {
  key: 's3-key'
  , secret: 's3-secret'
  , bucket: 'bucket-name'
  
  // optional
  , maxSize: 20 * 1024 * 1024 // default
  , id: '' // defaults to the hostname
  , nested: false
  , path: // defaults to 's3Logs'
  , temp: false
  , debug: false
  , headers: {} //headers that will be passed along to knox for the http requests
})

About

S3 Transport for winston

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CoffeeScript 94.2%
  • JavaScript 5.8%