Skip to content

Commit 16adea6

Browse files
authored
docs: fix env variable name in logEventIfEnabled() docstring (#3197)
1 parent 7e07ce9 commit 16adea6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/logger/src/Logger.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -432,11 +432,11 @@ class Logger extends Utility implements LoggerInterface {
432432
}
433433

434434
/**
435-
* Log the AWS Lambda event payload for the current invocation if the environment variable `POWERTOOLS_LOG_EVENT` is set to `true`.
435+
* Log the AWS Lambda event payload for the current invocation if the environment variable `POWERTOOLS_LOGGER_LOG_EVENT` is set to `true`.
436436
*
437437
* @example
438438
* ```ts
439-
* process.env.POWERTOOLS_LOG_EVENT = 'true';
439+
* process.env.POWERTOOLS_LOGGER_LOG_EVENT = 'true';
440440
*
441441
* import { Logger } from '@aws-lambda-powertools/logger';
442442
*

0 commit comments

Comments
 (0)