Make the logger injectable