Mariusz Nowak 4944f471b1
Prettify
2019-06-26 12:43:01 +02:00

34 lines
717 B
Markdown

<!--
title: Serverless Framework Commands - Fn - Logs
menuText: logs
menuOrder: 4
description: View logs of your Fn 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/fn/cli-reference/logs)
<!-- DOCS-SITE-LINK:END -->
# Fn - Logs
Lets you watch the logs of a specific function.
```bash
serverless logs -f hello
```
## Options
- `--function` or `-f` The function you want to fetch the logs for. **Required**
## Examples
```bash
serverless logs -f hello
```
This will fetch the logs for hello for the most recent calls to it.