Local logging with 'debug' and logging to stackdriver with 'bunyan'
npm install log2cloud``javascript
const logger = require('log2cloud')("my-service-name")
logger.error("error")
logger.warn("warn")
logger.fatal("fatal")
logger.info('info')
`
To log to Stackdriver API from Google you have to make sure that the service account file is defined in the environment variables or .env file.
`javascript``
GOOGLE_APPLICATION_CREDENTIALS='googleServiceAccount.json'