mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
37 lines
835 B
Markdown
37 lines
835 B
Markdown
<!--
|
|
title: Google Cloud Functions Serverless logs command
|
|
menuText: logs
|
|
menuOrder: 8
|
|
description: View logs of your Google Cloud Functions Function within your terminal using the Serverless Framework
|
|
layout: Doc
|
|
-->
|
|
|
|
<!-- DOCS-SITE-LINK:START automatically generated -->
|
|
|
|
### [Read this on the main serverless docs site](https://www.serverless.com/framework/docs/providers/google/cli-reference/logs)
|
|
|
|
<!-- DOCS-SITE-LINK:END -->
|
|
|
|
# Google - Logs
|
|
|
|
Lets you watch the logs of a specific function.
|
|
|
|
```bash
|
|
serverless logs --function functionName
|
|
```
|
|
|
|
## Options
|
|
|
|
- `--function` or `-f` The function you want to fetch the logs for. **Required**
|
|
- `--count` or `-c` The number of logs to display.
|
|
|
|
## Examples
|
|
|
|
### Retrieving logs
|
|
|
|
```bash
|
|
serverless logs --function functionName
|
|
```
|
|
|
|
This will display logs for the specified function.
|