Support logging of Error objects