-
Notifications
You must be signed in to change notification settings - Fork 146
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
Feature request: add additional log level: TRACE & corresponding logger.trace()
method
#1589
Comments
Thanks for opening your first issue here! We'll come back to you as soon as we can. |
Hi @codyfrisch, thank you for taking the time to open an issue on our repo and for explaining the reasoning behind this new log level. At least on the surface I see the addition of a Having a Before making a decision I'd like to leave the conversation open for a while and give the chance to other customers to share what they think about the above and whether this new level could be useful for their use cases. |
@dreamorosi I see what you mean. A log4j2 and .net core both have Since none have verbose, I am going to change my mind and say BTW thanks for the ability to set log level dynamically. |
I have just started to adopt powertools and configured lambda with advanced logging controls for the first time. I expected the log levels in the logger package to match the levels mentioned by aws. This would mean that |
logger.trace()
method
Hi @timo92 - we have a section in our Logger docs dedicated to explaining how Powertools for AWS Lambda Logger interacts with AWS Lambda Advanced Logging Controls (ALC). In short, if your function emits logs exclusively using our Logger, the only log levels that make sense from ALC as of today are I agree that the current experience is not as good as it could be, and ideally we should support all levels supported by ALC either by adding the ones that are missing ( Seeing as this is now getting traction, perhaps because people are starting to adopt ALC, I'm going to put this item on the backlog and open it for contributions in case anyone is interested. @timo92 - For -- For this issue, we should make the following changes:
Note For those interested in contributing, please leave a comment below so that we can assign the issue to you and make sure we don't duplicate efforts. Also, if you have any further questions please don't hesitate to ask here or on our Discord channel. |
@dreamorosi Feel free to asign this issue to me |
This issue is now closed. Please be mindful that future comments are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so. |
Use case
Create an additional log level of
TRACE
belowDEBUG
DEBUG
contains statements about entering specific functions, iterations of a loop, timing info, etc. as well as actual data such as function parameters, API responses etc.INFO
is reserved for normal informational messages, like logging the results of an invocation but not all the intermediate details.TRACE
level would allowDEBUG
to only contain the data, API responses, etc. andTRACE
then contains the statements for the execution path.Solution/User Experience
Add an additional level for
TRACE
as was done forCRITICAL
.Alternative solutions
No response
Acknowledgment
Future readers
Please react with 👍 and your use case to help us understand customer demand.
The text was updated successfully, but these errors were encountered: