options to write log to a file and to rotate file daily
improved daemon code as pointed by Matt
commits file forgotten to be saved in the last commit
Merge pull request #1 from gizotti/master

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