Add an append function to the optimization logger.

For follow-up on #56.