log file writable check