wd

winston-dropbox

A winston transport to write logs to a dropbox file.

Showing:

Popularity

Downloads/wk

3

GitHub Stars

2

Maintenance

Last Commit

4yrs ago

Contributors

1

Package

Dependencies

3

Size (min+gzip)

12.5KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

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');
OptionsDescription
apiKey (Required)String. Generate your own dropbox token
name (optional)String. Default: logs.
dailyRotate (optional)Boolean. Default true.

License

MIT

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100