added log folder and logging for rake task