Add support for logging exception data