use of console.info, console.warn and console.error for logging