set up a logger