In MySQL you can make logging appear in JSON format by installing component_log_sink_json component and enabling this component:
component_log_sink_json