update log file via the `tee` command