[autotex] Implement log clearing/appending