Use logging library instead of console.log

Bad rebase.