Use logging library instead of console.log

k