Skip to content

Bug: LogFormatter isn't exported from Logger module so users cannot use custom formatter feature #393

Closed
@ijemmy

Description

@ijemmy

Bug description

LogFormatter isn’t exported from Logger module so I can’t extend the class like in the doc.

image

Expected Behavior

I can import LogFormatter

Current Behavior

The class isn't exported

Possible Solution

  1. Import it from
  2. Ensure that all our tests import classes from package root

Steps to Reproduce

  1. Add `import {LogFormatter} from "@aws-lambda-powertools/logger"
  2. Yoru IDE will show syntax error.

Environment

  • Powertools version used: 0.2.0-beta.15
  • Packaging format (Layers, npm): npm
  • AWS Lambda function runtime: N/A
  • Debugging logs: N/A

Related issues, RFCs

N/A

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcompletedThis item is complete and has been merged/shippedloggerThis item relates to the Logger Utility

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions