Constructor takes in object that contains log method instead.