C++'ify operation logging.

Signed-off-by: Michael Lippautz <michael.lippautz@gmail.com>