serverless-logging-config
Advanced tools
Comparing version
{ | ||
"name": "serverless-logging-config", | ||
"version": "0.1.0", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/theburningmonk/serverless-logging-config.git" | ||
}, | ||
"version": "0.1.1", | ||
"description": "Lets you configure custom log group, JSON logging, and other recent logging changes announce in Nov 2023.", | ||
@@ -5,0 +9,0 @@ "main": "index.js", |
@@ -1,2 +0,2 @@ | ||
# serverless-log-config | ||
# serverless-logging-config | ||
@@ -7,7 +7,22 @@ Lets you configure custom log group, JSON logging, and other recent logging changes announce in Nov 2023. | ||
Example config: | ||
## Getting started | ||
1. Install as dev dependency: | ||
`npm i --save-dev serverless-logging-config` | ||
2. Add the plugin to the plugins list in your `serverless.yml`: | ||
```yml | ||
service: my-service | ||
plugins: | ||
- serverless-logging-config | ||
``` | ||
3. Configure the plugin in the `custom` section (you may have to add this to your `serverless.yml`). For example: | ||
```yml | ||
service: my-service | ||
custom: | ||
@@ -17,4 +32,4 @@ serverless-logging-config: | ||
logGroupName: my-logs # [Required] all functions will send logs this log group | ||
applicationLogLevel: DEBUG | ERROR | FATAL | INFO | TRACE | WARN | ||
systemLogLevel: DEBUG | INFO | WARN | ||
applicationLogLevel: INFO # [Optional] valid values are DEBUG, ERROR, FATAL, INFO, TRACE and WARN | ||
systemLogLevel: INFO # [Optional] valid values are DEBUG, INFO and WARN | ||
``` | ||
@@ -27,5 +42,5 @@ | ||
```yml | ||
plugins: | ||
plugins: | ||
- serverless-iam-roles-per-function | ||
- serverless-log-config | ||
``` | ||
- serverless-loggin-config | ||
``` |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
7827
7.26%44
57.14%0
-100%