Feature request: change visibility from private
to protected
to allow overrides
#3376
Closed
1 of 2 tasks
Labels
completed
This item is complete and has been merged/shipped
feature-request
This item refers to a feature request for an existing or new utility
logger
This item relates to the Logger Utility
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
:powertools-lambda-typescript/packages/logger/src/Logger.ts
Lines 703 to 707 in 0dc4de1
powertools-lambda-typescript/packages/logger/src/Logger.ts
Line 838 in 0dc4de1
powertools-lambda-typescript/packages/logger/src/Logger.ts
Lines 865 to 869 in 0dc4de1
Alternative solutions
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: