Use a logger object.