Why do I not get a pure XML log file?
When I run my file transfers with a PowerShell script, I request a XML log file.
What I get is a XML log mixed with a text log.
See the attachment
Edit: I think I figured it out.
Instead of
What I get is a XML log mixed with a text log.
# Connect Write-Output "Opening Connection" $session.DebugLogPath = $ArchiveFolder + "\sftplog.xml" $session.Open($sessionOptions)
Edit: I think I figured it out.
Instead of
$session.DebugLogPath
, it should be $session.SessionLogPath