FIXED problem by injecting the logger