File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 1
- /* eslint-disable sort-keys */
2
1
process . env . _X_AMZN_TRACE_ID = 'abcdef123456abcdef123456abcdef123456' ;
3
2
process . env . AWS_LAMBDA_FUNCTION_NAME = 'my-lambda-function' ;
4
3
process . env . AWS_LAMBDA_FUNCTION_MEMORY_SIZE = '128' ;
5
4
process . env . AWS_REGION = 'eu-central-1' ;
6
5
process . env . CUSTOM_ENV = 'prod' ;
7
6
8
7
import * as dummyEvent from '../../../tests/resources/events/custom/hello-world.json' ;
8
+ import * as powertool from '../../../package.json' ;
9
9
import { CustomConfigService } from './config/CustomConfigService' ;
10
10
import { CustomLogFormatter } from './formatters/CustomLogFormatter' ;
11
11
import { context as dummyContext } from '../../../tests/resources/contexts/hello-world' ;
@@ -21,8 +21,8 @@ const logger = new Logger({
21
21
customAttributes : {
22
22
awsAccountId : '123456789012' ,
23
23
logger : {
24
- name : 'aws-lambda-powertools-typescript' ,
25
- version : 'v0.1.3'
24
+ name : powertool . name ,
25
+ version : powertool . version ,
26
26
}
27
27
}
28
28
} ) ;
Original file line number Diff line number Diff line change 1
- import * as powertool from '../../package.json' ;
2
1
import { LogFormatter } from '../../src/formatter' ;
3
2
import { LogAttributes , UnformattedAttributes } from '../../types' ;
4
3
@@ -26,8 +25,6 @@ class CustomLogFormatter extends LogFormatter {
26
25
logLevel : attributes . logLevel ,
27
26
timestamp : this . formatTimestamp ( attributes . timestamp ) ,
28
27
logger : {
29
- name : powertool . name ,
30
- version : powertool . version ,
31
28
level : attributes . logLevel ,
32
29
sampleRateValue : attributes . sampleRateValue ,
33
30
} ,
You can’t perform that action at this time.
0 commit comments