colin
06/23/2022, 2:23 PMconsole.log
statements are not logging nested objects? See: [Object]
below. Is this a cloudwatch thing? Or an SST thing? This statement was pulled from cloudwatch but it is the same locally.
{
level: 'INFO',
message: 'Request received',
timestamp: '2022-06-23T14:00:35.483Z',
additional: {
raw_request: {
version: '2.0',
routeKey: 'POST /',
rawPath: '/',
rawQueryString: '',
headers: [Object],
requestContext: [Object]
}
}
}
Derek Kershner
06/23/2022, 2:25 PMconsole
provides two levels. If you need more levels, you can use JSON.stringify
.colin
06/23/2022, 2:27 PMcolin
06/23/2022, 2:34 PMthdxr
06/23/2022, 2:56 PMJSON.stringify(thing, null, 4)
if you want it pretty