Skip to content

Commit

Permalink
logging-{winston,bunyan}: improve API docs
Browse files Browse the repository at this point in the history
* API overview already included auth info.
* Fix links.
* Add missing `title`.
  • Loading branch information
ofrobots committed Jun 12, 2017
1 parent f4c4a79 commit 8b616ea
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 19 deletions.
10 changes: 1 addition & 9 deletions packages/logging-bunyan/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,7 @@ var BUNYAN_TO_STACKDRIVER = {

/**
* This module provides support for streaming your Bunyan logs to
* [Stackdriver Logging]{@link https://cloud.google.com/logging}.
*
* If your app is running on Google Cloud Platform, all configuration and
* authentication is handled for you. We also auto-detect the appropriate
* resource descriptor to report the log entries against.
*
* If you are running your application in anther environment, such as locally,
* on-premise, or on another cloud provider, you will need to provide additional
* configuration.
* [Stackdriver Logging](https://cloud.google.com/logging).
*
* @constructor
* @alias module:logging-bunyan
Expand Down
10 changes: 1 addition & 9 deletions packages/logging-winston/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,7 @@ var STACKDRIVER_LOGGING_LEVEL_CODE_TO_NAME = {

/**
* This module provides support for streaming your winston logs to
* [Stackdriver Logging]{@link https://cloud.google.com/logging}.
*
* If your app is running on Google Cloud Platform, all configuration and
* authentication is handled for you. We also auto-detect the appropriate
* resource descriptor to report the log entries against.
*
* If you are running your application in another environment, such as locally,
* on-premise, or on another cloud provider, you will need to provide additional
* configuration.
* [Stackdriver Logging](https://cloud.google.com/logging).
*
* @constructor
* @alias module:logging-winston
Expand Down
2 changes: 2 additions & 0 deletions packages/logging/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ var Sink = require('./sink.js');
* @resource [What is Stackdriver Logging?]{@link https://cloud.google.com/logging/docs}
* @resource [Introduction to the Stackdriver Logging API]{@link https://cloud.google.com/logging/docs/api}
* @resource [Logging to Stackdriver from Bunyan]{@link https://www.npmjs.com/package/@google-cloud/logging-bunyan}
* @resource [Logging to Stackdriver from Winston]{@link https://www.npmjs.com/package/@google-cloud/logging-winston}
*
* @param {object} options - [Configuration object](#/docs).
*/
Expand Down
4 changes: 3 additions & 1 deletion scripts/docs/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,14 @@ module.exports = {
title: 'Cloud Natural Language'
},
logging: {
title: 'Cloud Logging'
title: 'Stackdriver Logging'
},
'logging-bunyan': {
title: 'Stackdriver Logging through Bunyan',
skip: true
},
'logging-winston': {
title: 'Stackdriver Logging through Winston',
skip: true
},
monitoring: {
Expand Down

0 comments on commit 8b616ea

Please sign in to comment.