diff --git a/samples/logs.js b/samples/logs.js index ec551fc6..523141b6 100644 --- a/samples/logs.js +++ b/samples/logs.js @@ -79,13 +79,11 @@ function loggingBunyan() { // The JSON payload of the log as it appears in Stackdriver Logging // will contain "name": "my-service" name: 'my-service', - // log at 'info' and above - level: 'info', streams: [ - // Log to the console - {stream: process.stdout}, - // And log to Stackdriver Logging - loggingBunyan.stream(), + // Log to the console at 'info' and above + {stream: process.stdout, level: 'info'}, + // And log to Stackdriver Logging, logging at 'info' and above + loggingBunyan.stream('info'), ], });