Added a rotating file logger
First attempt with daemonized version