Checking whether we can write to error log