Use logger instead of console.log.