Skip to content

Commit 66bec07

Browse files
committed
docs(logger): update env variable
1 parent ee2abb5 commit 66bec07

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/core/logger.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ When debugging in non-production environments, you can log the incoming event us
167167

168168
=== "`logEventIfEnabled()`"
169169

170-
```typescript hl_lines="1 7"
170+
```typescript hl_lines="1 8"
171171
--8<-- "examples/snippets/logger/logEventManual.ts"
172172
```
173173

examples/snippets/logger/logEventManual.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
process.env.POWERTOOLS_LOG_EVENT = 'true';
1+
process.env.POWERTOOLS_LOGGER_LOG_EVENT = 'true';
22

33
import { Logger } from '@aws-lambda-powertools/logger';
4+
45
const logger = new Logger();
56

67
export const handler = async (event: unknown) => {

0 commit comments

Comments
 (0)