Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add log levels #34

Open
rfoel opened this issue Nov 8, 2022 · 0 comments
Open

Add log levels #34

rfoel opened this issue Nov 8, 2022 · 0 comments

Comments

@rfoel
Copy link
Contributor

rfoel commented Nov 8, 2022

I thought we can implement a plugin option for controlling log output verbosity.

For example,

  • INFO: Most verbose logging output. Prints any informational log (e.g. prints entire layer replacements without deduplication, with entire context including function name and layer arn)
  • WARN: Prints warnings only. Prints warnings only (e.g. prints deduplicated layer replacements - which current PR does)
  • ERROR: Prints errors only. Prints errors only (e.g. unknown layer arn)

Then, Users can control log verbosity like this:

// serverless.yml

// ... (truncated)
plugins:
  - serverless-latest-layer-version
custom:
  latestLayerVersion:
    logLevel: WARN

Anyway this isn't mandatory for merging. You can ignore this request ;)

Originally posted by @mooyoul in #33 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant