Re: Can’t Open Log File (Problem Solved)
We'll have to agree to disagree.
Session.open()
:
Write-Error: Exception calling "Open" with "1" argument(s): "Error occurred during logging. It's been turned off.
Can't open log file 'C:\Users\Dick\Documents\PowerShell\Logs'.
System Error. Code: 5.
Access is denied"
SessionLogPath
is set to "C:\Users\Dick\Documents\PowerShell\Logs"
. Curiously, the error message refers to this path as a “file”. Is it confusing a folder with a file?
Session.open()
, but still get a fatal error with the "Access is denied" message.
SessionLogPath
pointed to the folder where I wanted log files stored, per the documentation, which says SessionLogPath
is the “Path to store session log file to.” However, what WinSCP really needed was the path plus a log file name.
SessionLogPath
in documentation to Full path to session log, including file name at the end.
SessionLogPath
ends in a folder name instead of a file name, change message to SessionLogPath ends in a folder name. Please append a file name at the end of the path.
SessionLogFile
. The name SessionLogPath
can be kept for backward compatibility, but should be deprecated. Users should be alerted of the deprecation if they use the SessionLogPath
name.