Pretty-print XML when in logging