Replace console.log by logger