Modify OptimizationLogger so that one can inherit from