Skip to content

Feature request: Export PowertoolsLogFormatter from /logger #3414

@Myroslav341

Description

@Myroslav341

Use case

When creating a custom log formatter, the only way to keep the default baseAttributes shape is to copy the formatting code from PowertoolsLogFormatter.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestThis item refers to a feature request for an existing or new utilityloggerThis item relates to the Logger UtilityrejectedThis is something we will not be working on. At least, not in the measurable future

    Type

    No type

    Projects

    Status

    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions