added log feature, one file per day
added log feature, one file per day