Skip to content

Commit

Permalink
Update docs/core/logger.md
Browse files Browse the repository at this point in the history
Co-authored-by: ijemmy <ijemmy@users.noreply.github.com>
  • Loading branch information
dreamorosi and ijemmy committed Mar 3, 2022
1 parent e808c75 commit 5307d48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/core/logger.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ npm install @aws-lambda-powertools/logger

### Usage

The `Logger` utility should always be instantiated outside of the Lambda handler. In doing this, subsequent invocations processed by the same instance of your function can reuse these resources. This saves cost by reducing function run time. In addition to this, `Logger` can also be aware of things like whether or not a given invocation had a cold start or not and inject the appropriate fields into the log.
The `Logger` utility must always be instantiated outside of the Lambda handler. In doing this, subsequent invocations processed by the same instance of your function can reuse these resources. This saves cost by reducing function run time. In addition, `Logger` can keep track of a cold start and inject the appropriate fields into logs.

=== "handler.ts"

Expand Down

0 comments on commit 5307d48

Please sign in to comment.