Feature request: Export PowertoolsLogFormatter
from /logger
#3414
Labels
discussing
The issue needs to be discussed, elaborated, or refined
feature-request
This item refers to a feature request for an existing or new utility
logger
This item relates to the Logger Utility
need-response
This item requires a response from a customer and will considered stale after 2 weeks
Use case
When creating a custom log formatter, the only way to keep the default
baseAttributes
shape is to copy the formatting code fromPowertoolsLogFormatter
.If
PowertoolsLogFormatter
is exported on the package level, custom log formatters can inherit from it if needed.Solution/User Experience
import { LogFormatter, PowertoolsLogFormatter } from '@aws-lambda-powertools/logger'
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: