iolog: make write_*_log prefix optional