🚀 Socket Launch Week 🚀 Day 5: Introducing Socket Fix.Learn More →

serverless-logging-config

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-logging-config - npm Package Compare versions

Comparing version

to
0.1.1

{
"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
```