Changed the decleration of the logger to fix the logger issue