I write my app’s logs in HTML. It allows me to format as tables, large fonts for alerts, colour for errors, embed images, all sorts of visual aids. Easy to scan and identify the important stuff at a glance.
There is one common function to format as low-level HTML, and a trivial markup code to simplify calling it.