Log data into your Google Spreadsheet with [winston][0] logger modules.
npm install winston-google-spreadsheetLog data into your Google Spreadsheet with [winston][0]
js
var winston = require('winston');
//
// Requiring winston-google-spreadsheet will expose
// winston.transports.GoogleSpreadsheet
//
require('winston-google-spreadsheet').GoogleSpreadsheet;
winston.add(winston.transports.GoogleSpreadsheet, options);
`This transport accepts the follow options:
* __fileId:__ (Default None) The file ID of Google Spreadsheet that you want to log.
* __sheetIdx:__ (Default 1) The worksheet index of the file.
* __accessToken:__ (Default None) The access token to the file.
* __level:__ (Default Info) Level of messages that this transport should log.
In addition to these, the Redis transport also accepts the following options.
* __refresh_token:__ (Default None) Number of log messages to store.
* __client_id:__ (Default None) Name of the Redis container you wish your logs to be in.
* __client_secret:__ (Default None) Name of the Redis channel to stream logs from.
Metadata: Logged as JSON literal in cell
fileId: A file ID is included in the URL of the file.
!image2
Installation
$3
` bash
$ npm install winston
$ npm install winston-google-spreadsheet
``
#### Author: Masashi Katsumata
[0]: https://github.com/flatiron/winston