options to write log to a file and to rotate file daily