check for permission to write the logfile, not only its existance