Move logging setup to util