Skip to content

Commit 01c6bce

Browse files
committed
Enable log sampling again.
1 parent 4d6d22e commit 01c6bce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/powertools-examples-core-utilities/sam/template.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
AWSTemplateFormatVersion: '2010-09-09'
1+
AWSTemplateFormatVersion: "2010-09-09"
22
Transform: AWS::Serverless-2016-10-31
33
Description: >
44
CoreUtilities
@@ -13,9 +13,9 @@ Globals:
1313
Environment:
1414
Variables:
1515
# Powertools for AWS Lambda (Java) env vars: https://docs.powertools.aws.dev/lambda/java/#environment-variables
16-
POWERTOOLS_LOG_LEVEL: DEBUG
17-
# POWERTOOLS_LOGGER_SAMPLE_RATE: 0.1
18-
POWERTOOLS_LOGGER_LOG_EVENT: false
16+
POWERTOOLS_LOG_LEVEL: DEBUG # We use log buffering to buffer DEBUG logs (see log4j2.xml)
17+
POWERTOOLS_LOGGER_SAMPLE_RATE: 0.1
18+
POWERTOOLS_LOGGER_LOG_EVENT: true
1919
POWERTOOLS_METRICS_NAMESPACE: Coreutilities
2020

2121
Resources:

0 commit comments

Comments
 (0)