Expand tilde before open log file.