+
Skip to content

New-WinSCPSession -DebugLogLevel Question #163

@Final71

Description

@Final71

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载