move logger setup to index.js + tests