Skip to content

Commit 941b86c

Browse files
cristiancavallistephenplusplus
authored andcommitted
Update README - GCS Signature (#1807)
Update the readme to match the current GCS IIFE invocation signature. Without updated signature invoking on property bucket will cause an exception to be thrown.
1 parent 8047652 commit 941b86c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/logging/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ var logging = require('@google-cloud/logging')({
1818

1919
// Create a sink using a Bucket as a destination.
2020
// $ npm install --save @google-cloud/storage
21-
var gcs = require('@google-cloud/storage');
21+
var gcs = require('@google-cloud/storage')({
22+
projectId: 'grape-spaceship-123',
23+
keyFilename: '/path/to/keyfile.json'
24+
});
2225

2326
logging.createSink('my-new-sink', {
2427
destination: gcs.bucket('my-sink')

0 commit comments

Comments
 (0)