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/content/core/logging.mdx
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ Powertools extends the functionality of Log4J. Below is an example log4j2.xml fi
37
37
</Configuration>
38
38
```
39
39
40
-
You can also override log level by setting `LOG_LEVEL` env var - Here is an example using AWS Serverless Application Model (SAM)
40
+
You can also override log level by setting `POWERTOOLS_LOG_LEVEL` env var - Here is an example using AWS Serverless Application Model (SAM)
41
41
42
42
```yaml:title=template.yaml
43
43
Resources:
@@ -48,7 +48,7 @@ Resources:
48
48
Runtime: java8
49
49
Environment:
50
50
Variables:
51
-
LOG_LEVEL: DEBUG # highlight-line
51
+
POWERTOOLS_LOG_LEVEL: DEBUG # highlight-line
52
52
```
53
53
54
54
You can also explicitly set a service name via `POWERTOOLS_SERVICE_NAME` env var. This sets **service** key that will be present across all log statements.
Copy file name to clipboardExpand all lines: powertools-logging/src/main/java/software/amazon/lambda/powertools/logging/internal/LambdaLoggingAspect.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ public final class LambdaLoggingAspect {
0 commit comments