Fix log file cycling

If log file cycling doesn't have permission to create a new log file
it will end up closing the log file for good and stop logging.  Fix
this by checking if permission to cycle the log file exists and disable
the feature if it doesn't.