File tree 2 files changed +5
-4
lines changed
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:
625
625
=== "utils/formatters/MyCompanyLogFormatter.ts"
626
626
627
627
```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' ;
630
630
631
631
// Replace this line with your own type
632
632
type MyCompanyLog = LogAttributes;
633
633
634
- class MyCompanyLogFormatter implements LogFormatter {
634
+ class MyCompanyLogFormatter extends LogFormatter {
635
635
636
636
public formatAttributes(attributes: UnformattedAttributes): MyCompanyLog {
637
637
return {
Original file line number Diff line number Diff line change 1
1
export * from './helpers' ;
2
2
export * 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