From 6290d56e59d2369f4b14b19a59f2720730afd9c2 Mon Sep 17 00:00:00 2001 From: Ali Ijaz Sheikh Date: Fri, 24 Feb 2017 18:04:10 -0800 Subject: [PATCH 1/2] (logging-winston) Fix example in README.md Also removed the resource section in the config as it is not needed in common usage. --- packages/logging-winston/README.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/logging-winston/README.md b/packages/logging-winston/README.md index 95041ae8dce..2d3782b2eb1 100644 --- a/packages/logging-winston/README.md +++ b/packages/logging-winston/README.md @@ -17,10 +17,7 @@ var transport = require('@google-cloud/logging-winston'); winston.add(transport, { projectId: 'grape-spaceship-123', keyFilename: '/path/to/keyfile.json', - level: 'warning', // log at 'warning' and above - resource: { - type: 'global' - } + level: 'warn', // log at 'warn' and above }); winston.error('warp nacelles offline'); From 9a8236de4f97216a470c61c885f21e2cd98c1936 Mon Sep 17 00:00:00 2001 From: Ali Ijaz Sheikh Date: Fri, 24 Feb 2017 18:11:24 -0800 Subject: [PATCH 2/2] remove trailing comma --- packages/logging-winston/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/logging-winston/README.md b/packages/logging-winston/README.md index 2d3782b2eb1..f1608532e2d 100644 --- a/packages/logging-winston/README.md +++ b/packages/logging-winston/README.md @@ -17,7 +17,7 @@ var transport = require('@google-cloud/logging-winston'); winston.add(transport, { projectId: 'grape-spaceship-123', keyFilename: '/path/to/keyfile.json', - level: 'warn', // log at 'warn' and above + level: 'warn' // log at 'warn' and above }); winston.error('warp nacelles offline');