2.0.0 • Published 7 years ago
winston-gcl v2.0.0
winston-gcl
A Google Cloud Logging transport for winston.
Usage
var winston = require('winston');
//
// Requiring `winston-gcl` will expose
// `winston.transports.GCL`
//
require('winston-gcl');
winston.add(winston.transports.GCL, options);
The Google Cloud Logging transport is started of as a fork of the winston-loggly transport.
- level: Level of messages that this transport should log.
- auth: optional The authentication with an google-auth-library instance. If not given, the transport tries to query the google metadata service in order to extract a valid service account.
- projectId: Your Google Cloud Project ID
- logId: Log name
Installation
Installing npm (node package manager)
$ curl http://npmjs.org/install.sh | sh
Installing winston-gcl
$ npm install winston
$ npm install winston-gcl
Run Tests - TODO
All of the winston tests are written in vows, and cover all of the use cases described above. You will need to add valid credentials for the various transports included to test/config.json before running tests:
Once you have valid configuration and credentials you can run tests with [npm][7]:
npm test
#### Author: [Lars Jacbo](https://github.com/jaclar)
#### License: MIT
[0]: https://cloud.google.com/logging/docs/
[1]: https://github.com/winstonjs/winston
[2]: https://github.com/winstonjs/winston-loggly