File tree Expand file tree Collapse file tree
handwritten/logging-winston/samples Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414'use strict' ;
1515
1616// [START setup]
17- // By default, gcloud will authenticate using the service account file specified
18- // by the GOOGLE_APPLICATION_CREDENTIALS environment variable and use the
19- // project specified by the GCLOUD_PROJECT environment variable. See
20- // https://googlecloudplatform.github.io/gcloud-node/#/docs/guides/authentication
21- var gcloud = require ( 'gcloud ' ) ;
17+ // By default, the client will authenticate using the service account file
18+ // specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable and use
19+ // the project specified by the GCLOUD_PROJECT environment variable. See
20+ // https://googlecloudplatform.github.io/gcloud-node/#/docs/google-cloud/latest/ guides/authentication
21+ var Logging = require ( '@google-cloud/logging ' ) ;
2222
23- // Get a reference to the logging component
24- var logging = gcloud . logging ( ) ;
23+ // Instantiate a logging client
24+ var logging = Logging ( ) ;
2525// [END setup]
2626
2727// [START listSinks]
Original file line number Diff line number Diff line change 1515
1616// [START list]
1717// [START auth]
18- // By default, gcloud will authenticate using the service account file specified
19- // by the GOOGLE_APPLICATION_CREDENTIALS environment variable and use the
20- // project specified by the GCLOUD_PROJECT environment variable. See
21- // https://googlecloudplatform.github.io/gcloud-node/#/docs/guides/authentication
22- var gcloud = require ( 'gcloud ' ) ;
23-
24- // Get a reference to the logging component
25- var logging = gcloud . logging ( ) ;
18+ // By default, the client will authenticate using the service account file
19+ // specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable and use
20+ // the project specified by the GCLOUD_PROJECT environment variable. See
21+ // https://googlecloudplatform.github.io/gcloud-node/#/docs/google-cloud/latest/ guides/authentication
22+ var Logging = require ( '@google-cloud/logging ' ) ;
23+
24+ // Instantiate a logging client
25+ var logging = Logging ( ) ;
2626// [END auth]
2727
2828/**
Original file line number Diff line number Diff line change 99 "system-test" : " mocha -R spec -t 120000 --require intelli-espower-loader ../system-test/_setup.js system-test/*.test.js"
1010 },
1111 "dependencies" : {
12- "async" : " ^1.5.2" ,
12+ "@google-cloud/logging" : " ^0.1.1" ,
13+ "async" : " ^2.0.1" ,
1314 "express" : " ^4.13.4" ,
14- "fluent-logger" : " ^1.1.1" ,
15- "gcloud" : " ^0.37.0"
15+ "fluent-logger" : " ^2.0.1"
1616 },
1717 "devDependencies" : {
18- "mocha" : " ^2.5.3 "
18+ "mocha" : " ^3.0.2 "
1919 }
2020}
Original file line number Diff line number Diff line change @@ -18,14 +18,14 @@ var async = require('async');
1818
1919// [START write]
2020// [START setup]
21- // By default, gcloud will authenticate using the service account file specified
22- // by the GOOGLE_APPLICATION_CREDENTIALS environment variable and use the
23- // project specified by the GCLOUD_PROJECT environment variable. See
24- // https://googlecloudplatform.github.io/gcloud-node/#/docs/guides/authentication
25- var gcloud = require ( 'gcloud ' ) ;
21+ // By default, the client will authenticate using the service account file
22+ // specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable and use
23+ // the project specified by the GCLOUD_PROJECT environment variable. See
24+ // https://googlecloudplatform.github.io/gcloud-node/#/docs/google-cloud/latest/ guides/authentication
25+ var Logging = require ( '@google-cloud/logging ' ) ;
2626
27- // Get a reference to the logging component
28- var logging = gcloud . logging ( ) ;
27+ // Instantiate a logging client
28+ var logging = Logging ( ) ;
2929// [END setup]
3030
3131/**
You can’t perform that action at this time.
0 commit comments