Added file permissions for log file.