checks if log dir exist, creates it if not