add log file directory size check