Set up a logger on tests