Why do I not get a pure XML log file?

Advertisement

mderousselle
Joined:
Posts:
1
Location:
The Woodlands

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.
# Connect
Write-Output "Opening Connection"
$session.DebugLogPath = $ArchiveFolder + "\sftplog.xml"
$session.Open($sessionOptions)
See the attachment
Edit: I think I figured it out.
Instead of $session.DebugLogPath, it should be $session.SessionLogPath

WinSCP XML Log.png

Reply with quote

Advertisement

You can post new topics in this forum