-
Notifications
You must be signed in to change notification settings - Fork 29
Closed
Description
Issue Description
Within New-WinSCPSession, you have added the ability to declare a DebugLogLevel in line with https://winscp.net/eng/docs/library_session (int DebugLogLevel), however, value wise it is currently set to only allow 0-2, but it looks like WinSCP Supports a value of -1 to indicate reduced logging.
Is it possible to change the data validation to allow for the reduced logging option?
Example
New-WinSCPSession -SessionOptions $SessionOptions -SessionLogPath $WinSCPLogPath -DebugLogLevel [INT32]
Expected Output
The following based on the DebugLogLevel:
-1 = Reduced
0 = Normal
1 = Debug 1
2 = Debug 2
Actual Output
0 = Normal
1 = Debug 1
2 = Debug 2
-1 = Fails due to Parameter validation
Metadata
Metadata
Assignees
Labels
No labels