adding log to file feature