dump log to logs directory