Skip to content

Commit 1eb16d7

Browse files
committed
docs: add missing parent logger
Signed-off-by: heitorlessa <[email protected]>
1 parent 686c19f commit 1eb16d7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/core/event_handler/api_gateway.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,14 +896,16 @@ Let's assume you have `app.py` as your Lambda function entrypoint and routes in
896896

897897
We use `include_router` method and include all user routers registered in the `router` global object.
898898

899-
```python hl_lines="6 8-9"
899+
```python hl_lines="7 10-11"
900900
from typing import Dict
901901

902+
from aws_lambda_powertools import Logger
902903
from aws_lambda_powertools.event_handler import ApiGatewayResolver
903904
from aws_lambda_powertools.utilities.typing import LambdaContext
904905

905906
import users
906907

908+
logger = Logger()
907909
app = ApiGatewayResolver()
908910
app.include_router(users.router)
909911

0 commit comments

Comments
 (0)