Implemented daemon -d debug logging switch