move logger setup to own file