optimization-logger.hh: improve doc and test.