[#76800748] Allow outputting logs in JSON format

This change allows us to output the logs in JSON rather than plain
text. An application flag has been used rather than changing it over
directly so that we can gracefully move our infrastructure over to use
it.