something seems missing here as you are never setting the logger anywhere