Log data into your Google Spreadsheet with [winston] logger modules.
Log data into your Google Spreadsheet with winston
var winston = require'winston';//// Requiring `winston-google-spreadsheet` will expose// `winston.transports.GoogleSpreadsheet`//require'winston-google-spreadsheet'GoogleSpreadsheet;winstonaddwinstontransportsGoogleSpreadsheet options;
This transport accepts the follow options:
In addition to these, the Redis transport also accepts the following options.
Metadata: Logged as JSON literal in cell
fileId: A file ID is included in the URL of the file.
$ npm install winston$ npm install winston-google-spreadsheet
Create a Google Spreadsheet in your Google Drive, then add timestamp, level, message and meta columns like this image.