I encountered a console log that appears as follows:
2021-01-06T09:06:05.541212726Z D saveGarment: Function execution took 736 ms, finished with status code: 204
2021-01-06T09:06:10.844901031Z D saveGarment: Function execution started
2021-01-06T09:06:16.153Z ? saveGarment: CORE
2021-01-06T09:06:18.134508823Z D saveGarment: Function execution took 7470 ms, finished with status code: 200
2021-01-06T09:06:19.546Z ? saveGarment: { message: 'fail' }
Is there a way to extract and format this information into JSON like so:
{
{
date: '2021-01-06'
time: '09:06:05'
type: 'D'
function: 'saveGarment'
message: 'Function execution took 736 ms'
statusCode: 204
},
}