Customizing PX4 logs in firmware

Hi guys,
I am new to PX4 development, I got a requirement to customize the logs be in JSON format like below

{
“log_id”: “1x345fder”,
“flight_start_time”: 1234566775,
“flight_end_time”: 1234567898,
“flight_path”: [{
“coordinate”: {
“lat”: 12.12456,
“long”: 24.22345
}
},
{
“coordinate”: {
“lat”: 12.12456,
“long”: 24.22345
}
},
{
“coordinate”: {
“lat”: 12.12456,
“long”: 24.22345
}
},
{
“coordinate”: {
“lat”: 12.12456,
“long”: 24.22345
}
},
{
“coordinate”: {
“lat”: 12.12456,
“long”: 24.22345
}
},
{
“coordinate”: {
“lat”: 12.12456,
“long”: 24.22345
}
}
],
“flight_time_breach”: [{
“breach_time”: 12345687868
},
{
“breach_time”: 12345687869
},
{
“breach_time”: 12345687870
},
{
“breach_time”: 12345687871
},
{
“breach_time”: 12345687872
},
{
“breach_time”: 12345687873
},
{
“breach_time”: 12345687874
}
]

}

is this achievable ? if so where should I modify the code to get the result?
Thank you in advance.