Unable to open log file for appending