Instantiate a logger object to log.