Closed as not planned
Closed as not planned
Description
Use case
Currently, tracer.provider.setLogger(logger)
allows the customization of the logger. However, in the Metrics class there is not an option to do the same.
Solution/User Experience
Instead of only using this.setConsole()
here as a private method, it is possible to update the MetricsOptions
and receive a logger there.
Alternative solutions
- Update `MetricsOptions` to receive a custom logger
- Expose `setConsole` method as public and receive a param `logger: Logger` of the same type of `tracer.provider.setLogger`.
Acknowledgment
- This feature request meets Powertools for AWS Lambda (TypeScript) Tenets
- Should this be considered in other Powertools for AWS Lambda languages? i.e. Python, Java, and .NET
Future readers
Please react with 👍 and your use case to help us understand customer demand.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Closed