Skip to content

Commit 2fc8b9d

Browse files
Takashi Matsuostephenplusplus
authored andcommitted
Stackdriver product rename (#1580)
1 parent 8ae5f40 commit 2fc8b9d

5 files changed

Lines changed: 25 additions & 26 deletions

File tree

handwritten/logging/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# @google-cloud/logging
2-
> Google Cloud Logging Client Library for Node.js
2+
> Stackdriver Logging Client Library for Node.js
33
44
*Looking for more Google APIs than just Logging? You might want to check out [`google-cloud`][google-cloud].*
55

@@ -76,7 +76,7 @@ If you are not running this client on Google Compute Engine, you need a Google D
7676
1. Visit the [Google Developers Console][dev-console].
7777
2. Create a new project or click on an existing project.
7878
3. Navigate to **APIs & auth** > **APIs section** and turn on the following APIs (you may need to enable billing in order to use these services):
79-
* Google Cloud Logging API
79+
* Stackdriver Logging API
8080
4. Navigate to **APIs & auth** > **Credentials** and then:
8181
* If you want to use a new service account, click on **Create new Client ID** and select **Service account**. After the account is created, you will be prompted to download the JSON key file that the library uses to authenticate your requests.
8282
* If you want to generate a new key for an existing service account, click on **Generate new JSON key** and download the JSON key file.

handwritten/logging/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@google-cloud/logging",
33
"version": "0.2.0",
44
"author": "Google Inc.",
5-
"description": "Google Cloud Logging Client Library for Node.js",
5+
"description": "Stackdriver Logging Client Library for Node.js",
66
"contributors": [
77
{
88
"name": "Burcu Dogan",
@@ -47,7 +47,9 @@
4747
"google cloud",
4848
"cloud",
4949
"google logging",
50-
"logging"
50+
"logging",
51+
"stackdriver logging",
52+
"stackdriver"
5153
],
5254
"dependencies": {
5355
"@google-cloud/common": "^0.4.0",

handwritten/logging/src/index.js

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -50,24 +50,20 @@ var PKG = require('../package.json');
5050

5151
/**
5252
* <p class="notice">
53-
* **This is a Beta release of Google Cloud Logging.** This API is not covered
53+
* **This is a Beta release of Stackdriver Logging.** This API is not covered
5454
* by any SLA or deprecation policy and may be subject to
5555
* backward-incompatible changes.
5656
* </p>
5757
*
58-
* [Google Cloud Logging](https://cloud.google.com/logging/docs) collects and
59-
* stores logs from applications and services on the Google Cloud Platform:
60-
*
61-
* - Export your logs to Google Cloud Storage, Google BigQuery, or Google
62-
* Cloud Pub/Sub.
63-
* - Integrate third-party logs from your virtual machine instances by
64-
* installing the logging agent, `google-fluentd`.
58+
* [Stackdriver Logging](https://cloud.google.com/logging/docs) allows you to
59+
* store, search, analyze, monitor, and alert on log data and events from Google
60+
* Cloud Platform and Amazon Web Services (AWS).
6561
*
6662
* @constructor
6763
* @alias module:logging
6864
69-
* @resource [What is Google Cloud Logging?]{@link https://cloud.google.com/logging/docs}
70-
* @resource [Introduction to the Cloud Logging API]{@link https://cloud.google.com/logging/docs/api}
65+
* @resource [What is Stackdriver Logging?]{@link https://cloud.google.com/logging/docs}
66+
* @resource [Introduction to the Stackdriver Logging API]{@link https://cloud.google.com/logging/docs/api}
7167
*
7268
* @param {object} options - [Configuration object](#/docs).
7369
*/
@@ -259,7 +255,7 @@ Logging.prototype.entry = function(resource, data) {
259255
*
260256
* @example
261257
* logging.getEntries(function(err, entries) {
262-
* // `entries` is an array of Cloud Logging entry objects.
258+
* // `entries` is an array of Stackdriver Logging entry objects.
263259
* // See the `data` property to read the data from the entry.
264260
* });
265261
*
@@ -284,7 +280,7 @@ Logging.prototype.entry = function(resource, data) {
284280
* logging.getEntries()
285281
* .on('error', console.error)
286282
* .on('data', function(entry) {
287-
* // `entry` is a Cloud Logging entry object.
283+
* // `entry` is a Stackdriver Logging entry object.
288284
* // See the `data` property to read the data from the entry.
289285
* })
290286
* .on('end', function() {
@@ -420,7 +416,7 @@ Logging.prototype.getSinks = function(options, callback) {
420416
};
421417

422418
/**
423-
* Get a reference to a Cloud Logging log.
419+
* Get a reference to a Stackdriver Logging log.
424420
*
425421
* @resource [Log Overview]{@link https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.logs}
426422
*
@@ -435,7 +431,7 @@ Logging.prototype.log = function(name) {
435431
};
436432

437433
/**
438-
* Get a reference to a Cloud Logging sink.
434+
* Get a reference to a Stackdriver Logging sink.
439435
*
440436
* @resource [Sink Overview]{@link https://cloud.google.com/logging/docs/api/ref_v2beta1/rest/v2beta1/projects.sinks}
441437
*
@@ -451,7 +447,7 @@ Logging.prototype.sink = function(name) {
451447

452448
/**
453449
* This method is called when creating a sink with a Bucket destination. The
454-
* bucket must first grant proper ACL access to the Cloud Logging account.
450+
* bucket must first grant proper ACL access to the Stackdriver Logging account.
455451
*
456452
* The parameters are the same as what {module:logging#createSink} accepts.
457453
*
@@ -475,7 +471,8 @@ Logging.prototype.setAclForBucket_ = function(name, config, callback) {
475471

476472
/**
477473
* This method is called when creating a sink with a Dataset destination. The
478-
* dataset must first grant proper ACL access to the Cloud Logging account.
474+
* dataset must first grant proper ACL access to the Stackdriver Logging
475+
* account.
479476
*
480477
* The parameters are the same as what {module:logging#createSink} accepts.
481478
*
@@ -519,7 +516,7 @@ Logging.prototype.setAclForDataset_ = function(name, config, callback) {
519516

520517
/**
521518
* This method is called when creating a sink with a Topic destination. The
522-
* topic must first grant proper ACL access to the Cloud Logging account.
519+
* topic must first grant proper ACL access to the Stackdriver Logging account.
523520
*
524521
* The parameters are the same as what {module:logging#createSink} accepts.
525522
*

handwritten/logging/src/log.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ Log.prototype.error = function(entry, options, callback) {
290290
*
291291
* @example
292292
* log.getEntries(function(err, entries) {
293-
* // `entries` is an array of Cloud Logging entry objects.
293+
* // `entries` is an array of Stackdriver Logging entry objects.
294294
* // See the `data` property to read the data from the entry.
295295
* });
296296
*
@@ -315,7 +315,7 @@ Log.prototype.error = function(entry, options, callback) {
315315
* log.getEntries()
316316
* .on('error', console.error)
317317
* .on('data', function(entry) {
318-
* // `entry` is a Cloud Logging entry object.
318+
* // `entry` is a Stackdriver Logging entry object.
319319
* // See the `data` property to read the data from the entry.
320320
* })
321321
* .on('end', function() {
@@ -396,7 +396,7 @@ Log.prototype.warning = function(entry, options, callback) {
396396
};
397397

398398
/**
399-
* Write log entries to Cloud Logging.
399+
* Write log entries to Stackdriver Logging.
400400
*
401401
* While you may write a single entry at a time, batching multiple entries
402402
* together is preferred to avoid reaching the queries per second limit.

handwritten/logging/src/sink.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ var util = require('util');
3030
*/
3131
/**
3232
* A sink is an object that lets you to specify a set of log entries to export
33-
* to a particular destination. Cloud Logging lets you export log entries to
34-
* destinations including Google Cloud Storage buckets (for long term log
33+
* to a particular destination. Stackdriver Logging lets you export log entries
34+
* to destinations including Google Cloud Storage buckets (for long term log
3535
* storage), Google BigQuery datasets (for log analysis), Google Pub/Sub (for
3636
* streaming to other applications).
3737
*

0 commit comments

Comments
 (0)