Closed zirkelc closed 5 days ago
Hi @zirkelc, the proposal makes sense.
We discussed this in #3178, so feel free to open a PR to make these changes and I'll help you get it merged before the next release!
⚠️ COMMENT VISIBILITY WARNING ⚠️
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
As discussed before, I would like to suggest to change the visibility of certain methods of
Logger
fromprivate
toprotected
to allow overrides by subclassingLogger
. A use case for such an override would be the buffering of log messages (see #3178).If approved, I'm happy to submit a PR.
Solution/User Experience
The following methods could be made
protected
: https://github.com/aws-powertools/powertools-lambda-typescript/blob/0dc4de15e0ecb4d39585bd094a2d958be2d06bb2/packages/logger/src/Logger.ts#L703-L707https://github.com/aws-powertools/powertools-lambda-typescript/blob/0dc4de15e0ecb4d39585bd094a2d958be2d06bb2/packages/logger/src/Logger.ts#L838
https://github.com/aws-powertools/powertools-lambda-typescript/blob/0dc4de15e0ecb4d39585bd094a2d958be2d06bb2/packages/logger/src/Logger.ts#L865-L869
Alternative solutions
Acknowledgment
Future readers
Please react with 👍 and your use case to help us understand customer demand.