You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/core/logger.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -201,7 +201,7 @@ In each case, the printed log will look like this:
201
201
When debugging in non-production environments, you can instruct Logger to log the incoming event with the middleware/decorator parameter `logEvent` or via `POWERTOOLS_LOGGER_LOG_EVENT` env var set to `true`.
202
202
203
203
???+ warning
204
-
This is disabled by default to prevent sensitive info being logged
204
+
This is disabled by default to prevent sensitive info being logged
The pre-signed URL to download this Lambda Layer will be within `Location` key.
@@ -206,23 +201,23 @@ You can include Lambda Powertools Lambda Layer using [AWS Lambda Console](https:
206
201
207
202
If you use `esbuild` to bundle your code, make sure to exclude `@aws-lambda-powertools` from being bundled since the packages will be brought by the Layer:
208
203
209
-
=== "SAM" (check the [doc](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-using-build-typescript.html) for more details)
204
+
=== "SAM (check the [doc](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-using-build-typescript.html) for more details)"
210
205
211
206
```yaml hl_lines="5"
212
207
MyLambdaFunction:
213
-
Type: AWS::Serverless::Function
214
-
Properties:
215
-
...
216
-
Metadata:
217
-
# Manage esbuild properties
218
-
BuildMethod: esbuild
219
-
BuildProperties:
220
-
Minify: true
221
-
External:
222
-
- '@aws-lambda-powertools/commons'
223
-
- '@aws-lambda-powertools/logger'
224
-
- '@aws-lambda-powertools/metrics'
225
-
- '@aws-lambda-powertools/tracer'
208
+
Type: AWS::Serverless::Function
209
+
Properties:
210
+
...
211
+
Metadata:
212
+
# Manage esbuild properties
213
+
BuildMethod: esbuild
214
+
BuildProperties:
215
+
Minify: true
216
+
External:
217
+
- '@aws-lambda-powertools/commons'
218
+
- '@aws-lambda-powertools/logger'
219
+
- '@aws-lambda-powertools/metrics'
220
+
- '@aws-lambda-powertools/tracer'
226
221
```
227
222
228
223
=== "Serverless framework (check the [doc](https://floydspace.github.io/serverless-esbuild/) for more details)"
@@ -240,17 +235,17 @@ If you use `esbuild` to bundle your code, make sure to exclude `@aws-lambda-powe
240
235
=== "CDK (check the [doc](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_lambda_nodejs.BundlingOptions.html#externalmodules) for more details)"
241
236
242
237
```typescript hl_lines="11 16"
243
-
new awsLambdaNodejs.NodejsFunction(this, 'Function', {
244
-
...
245
-
bundling: {
246
-
externalModules: [
247
-
'@aws-lambda-powertools/commons',
248
-
'@aws-lambda-powertools/logger',
249
-
'@aws-lambda-powertools/metrics',
250
-
'@aws-lambda-powertools/tracer',
251
-
],
252
-
}
253
-
});
238
+
new awsLambdaNodejs.NodejsFunction(this, 'Function', {
0 commit comments