Checking if log file is writable. If not, send an error message.