mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
37 lines
794 B
Markdown
37 lines
794 B
Markdown
<!--
|
|
title: Serverless Framework Commands - AWS Lambda - Serverless Stats
|
|
menuText: serverless stats
|
|
menuOrder: 15
|
|
description: Enables or disables Serverless Statistic logging within 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/aws/cli-reference/slstats)
|
|
<!-- DOCS-SITE-LINK:END -->
|
|
|
|
# Serverless Statistics
|
|
|
|
This plugin implements a way to toggle framework statistics.
|
|
|
|
```bash
|
|
serverless slstats --enable
|
|
```
|
|
|
|
## Options
|
|
- `--enable` or `-e`.
|
|
- `--disable` or `-d`
|
|
|
|
## Provided lifecycle events
|
|
- `slstats:slstats`
|
|
|
|
## Examples
|
|
|
|
### Disabling it
|
|
|
|
```bash
|
|
serverless slstats --disable
|
|
```
|
|
|
|
This example will disable framework statistics.
|