winston-dynamodb-update

0.1.5 • Public • Published

DynamoDB Transport for Winston

A DynamoDB transport for winston.

Usage

  var winston = require('winston');
  
  require('winston-dynamodb').DynamoDB;
  
  winston.add(winston.transports.DynamoDB, options);

Options

accessKeyId     : your AWS access key id
secretAccessKey : your AWS secret access key
region          : the region where the domain is hosted
tableName       : DynamoDB table name

Prerequisite

Make a table with tableName

The table should have

  • hash key: (String) level
  • range key: (String) timestamp

Region

Available Regions

  • us-east-1
  • us-west-1
  • us-west-2
  • eu-west-1
  • ap-northeast-1
  • ap-southeast-1
  • ap-southeast-2
  • sa-east-1

AWS Credentials

All of these options are values that you can find from your Amazon Web Services account: 'accessKeyId', 'secretAccessKey' and 'awsAccountId'.

Installation

  $ npm install winston
  $ npm install winston-dynamodb

Dependents (0)

Package Sidebar

Install

npm i winston-dynamodb-update

Weekly Downloads

7

Version

0.1.5

License

none

Last publish

Collaborators

  • yawetse