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

Option for lighter logging #236

Open
richardtapendium opened this issue Aug 16, 2020 · 2 comments
Open

Option for lighter logging #236

richardtapendium opened this issue Aug 16, 2020 · 2 comments

Comments

@richardtapendium
Copy link

This is a Feature Proposal

Description

Would it be possible to have an option to make the logging lighter on the lambda-powertools-logger?

Currently, every single call to Log.method logs out awsRegion, functionName etc. We would like to be able to log this data only on the first log of a function (usually the event data) and then turn it off for the rest. This would make it much easier to parse our logs.

If this is something the team is open to, I'd be happy to make the PR.

@richardtapendium
Copy link
Author

richardtapendium commented Aug 16, 2020

It would also be helpful if we were able to log strings, e.g. screenshot below (truncated)
image

When we view our logs in our logging service, instead of being able to see the string text directly, we now have to expand each object only to find a simple string that is decorated with a tonne of extra data, making it harder to find the exact log
image

Would be great to have an option to just log strings too.

@richardtapendium
Copy link
Author

@theburningmonk any opinion on this?

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