Use logging library instead of console.log

we could do that...