Log persistent command history in a separate file.