winston-dropbox

1.0.1 • Public • Published

Winston Dropbox Logger

A Winston transport to log into a dropbox file.

Install

npm install winston winston-dropbox

Setup

const winston = require('winston');
const winstonDropbox = require('winston-dropbox');

const options = {
	apiKey: 'DROPBOX_API_TOKEN'
}

const logger = new winston.Logger({
	level: 'info',
	transports: [
		new (winston.transports.Console)({'timestamp':true}),
		new (winstonDropbox)(options)
	]
});

logger.info('Hello Dropbox logger');
Options Description
apiKey (Required) String. Generate your own dropbox token
name (optional) String. Default: logs.
dailyRotate (optional) Boolean. Default true.

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i winston-dropbox

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • vasanthv