r12: add log file