Logs the current Exception state to the logfile in XML format. The item is logged as individual elements.