<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>

# Google Cloud Functions - Logging sample

* [Writing and Viewing Logs from Cloud Functions documentation][docs]
* [Background functions sample source code][code]

[docs]: https://cloud.google.com/functions/docs/monitoring/logging
[code]: index.js

## Deploy and run the sample

See the [Writing and Viewing Logs from Cloud Functions documentation][docs].

## Run the tests

1. Read and follow the [prerequisites](../../../README.md#setup).

1. Install dependencies:

        npm install

1. Run the tests:

        npm test
