added logger to daemon example, closes #126