Changed the logger to be a function instead of an object like console.