option added(print, log). date and time will be added in log file name