A way to record log messages from arduino

I have an Arduino connected to HA through MQTT. I like to store some of the error and critical messages from the Arduino in HA, so I can review it without connecting a serial interface. Currently, I use a logger and it saves to SD card, but I found it not that reliable. Is there anything like a REST/MQTT API to add to the HA log.

I have an Ethernet connection, and static ip so should be quite reliable.

I see one integration, but the details are missing.


Also, it would be great to have some kind of structured log format so easy to filter out.

Is there any better way.

Thanks for your time.
bsr.