update Log class to recreate logs dir if not exist