setLogger

Set up a logger.