File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -625,13 +625,13 @@ This is how the `MyCompanyLogFormatter` (dummy name) would look like:
625625=== "utils/formatters/MyCompanyLogFormatter.ts"
626626
627627 ```typescript
628- import { LogFormatter } from " @aws-lambda-powertools/logger" ;
629- import { LogAttributes, UnformattedAttributes } from " @aws-lambda-powertools/logger/types" ;
628+ import { LogFormatter } from ' @aws-lambda-powertools/logger' ;
629+ import { LogAttributes, UnformattedAttributes } from ' @aws-lambda-powertools/logger/lib/ types' ;
630630
631631 // Replace this line with your own type
632632 type MyCompanyLog = LogAttributes;
633633
634- class MyCompanyLogFormatter implements LogFormatter {
634+ class MyCompanyLogFormatter extends LogFormatter {
635635
636636 public formatAttributes(attributes: UnformattedAttributes): MyCompanyLog {
637637 return {
Original file line number Diff line number Diff line change 11export * from './helpers' ;
22export * from './Logger' ;
3- export * from './middleware' ;
3+ export * from './middleware' ;
4+ export * from './formatter' ;
You can’t perform that action at this time.
0 commit comments