@@ -39,7 +39,7 @@ You can also explicitly set a service name via `service` param or via `POWERTOOL
3939``` python:title=app.py 
4040from  aws_lambda_powertools.logging import  Logger
4141#  POWERTOOLS_SERVICE_NAME defined
42- logger =  Logger() #  highlight-line  
42+ logger =  Logger() #  highlight-line
4343
4444#  Explicit definition
4545Logger(service = " payment" level = " INFO" 
@@ -58,7 +58,7 @@ Key | Type | Example | Description
5858** sampling_rate**  | int |  0.1 | Debug logging sampling rate in percentage e.g. 1% in this case
5959** message**  | any |  "Collecting payment" | Log statement value. Unserializable JSON values will be casted to string
6060
61- ## Capturing context Lambda info    
61+ ## Capturing context Lambda info  
6262
6363You can enrich your structured logs with key Lambda context information via ` inject_lambda_context ` .
6464
@@ -109,7 +109,7 @@ Key | Type | Example
109109<summary ><strong >Exerpt output in CloudWatch Logs</strong ></summary >
110110
111111``` json:title=cloudwatch_logs.json 
112- {   
112+ {
113113   "timestamp" :" 2020-05-24 18:17:33,774" 
114114   "level" :" INFO" 
115115   "location" :" collect.handler:1" 
@@ -125,7 +125,7 @@ Key | Type | Example
125125   "message" : " Collecting payment" 
126126}
127127
128- {   
128+ {
129129   "timestamp" :" 2020-05-24 18:17:33,774" 
130130   "level" :" INFO" 
131131   "location" :" collect.handler:15" 
@@ -137,7 +137,7 @@ Key | Type | Example
137137   "cold_start" : true ,
138138   "sampling_rate" : 0.0 ,
139139// highlight-start 
140-    "message" :{   
140+    "message" :{
141141      "operation" :" collect_payment" 
142142      "charge_id" : " ch_AZFlk2345C0" 
143143   }
@@ -148,7 +148,7 @@ Key | Type | Example
148148
149149## Appending additional keys  
150150
151- You can append your own keys to your existing Logger via ` structure_logs `  with ** append**  param.  
151+ You can append your own keys to your existing Logger via ` structure_logs `  with ** append**  param.
152152
153153``` python:title=collect.py 
154154from  aws_lambda_powertools.logging import  Logger
@@ -166,7 +166,7 @@ def handler(event, context)
166166<summary ><strong >Exerpt output in CloudWatch Logs</strong ></summary >
167167
168168``` json:title=cloudwatch_logs.jsonn 
169- {    
169+ { 
170170   "timestamp": "2020-05-24 18:17:33,774", 
171171   "level": "INFO", 
172172   "location": "collect.handler:1", 
@@ -209,7 +209,7 @@ def handler(event, context)
209209<summary ><strong >Exerpt output in CloudWatch Logs</strong ></summary >
210210
211211``` json:title=cloudwatch_logs.json 
212- {   
212+ {
213213   "timestamp" : " 2020-05-24 18:17:33,774" 
214214   "level" : " INFO" 
215215   "location" : " collect.handler:1" 
@@ -223,4 +223,4 @@ def handler(event, context)
223223   "message" : " Collecting payment" 
224224}
225225``` 
226- </details >
226+ </details >
0 commit comments