-
Notifications
You must be signed in to change notification settings - Fork 77
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
Support custom loggers #98
Comments
Is the problem the But sounds like the problem you actually have, and the solution you're looking for, is a way to use your own logger instead of the one from the powertools, right? The solution for this problem would need to work for more than just this middleware. Maybe a possible solution here is to let the powertools logger take in a proxy for As for custom metrics, you have a few solutions here:
|
Actually the core problem is the inability to do a simple Yes the message I agree powertools in general should allow consumers to inject their own logger as the current conventions are quite prescriptive, but perhaps we should splinter that off into a separate issue. |
Ok, let's keep this ticket for the custom logger thread since that's where we started off on. I'm gonna start a new issue for metrics. For that, the simplest thing I can think of is to let you pass in a callback function, but let's carry on the discussed on the other thread. |
This is a Feature Proposal
Description
lambda-powertools-middleware-log-timeout
locks us down to the following error message'invocation timed out'
Proposed solution:
The text was updated successfully, but these errors were encountered: