serverless-log-format
v0.1.1
Published
Configure log format of your functions.
Downloads
42
Readme
Serverless Log Format
This plugin allows you to specify the log format/level of your functions.
Installation
Add the package using your package manager:
Yarn
yarn add --dev serverless-log-format
NPM
npm install --save-dev serverless-log-format
Then add the plugin to your serverless.yml
:
plugins:
- serverless-log-format
Global
You can define the properties globally in your serverless.yml
provider::
name: aws
runtime: python3.12
logFormat: JSON
logLevel: DEBUG
systemLogLevel: WARN
Per function
Or per function:
functions:
hello:
handler: hello.handler
logFormat: JSON
logLevel: DEBUG
systemLogLevel: WARN