Can use custom logger instead of console.log