Search Results for

    Show / Hide Table of Contents

    Method SetTraceLevel

    SetTraceLevel(String, String, Int32)

    Set trace level

    Declaration
    void SetTraceLevel(string connectionId, string traceSwitch, int traceLevel)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    System.String traceSwitch

    The trace switch. For example: "Dcis.Workspace.Distributor", "Dcis.VersionStore.Rdb.Internal", "Dcis.Workspace.LicenceMgmtSwitch", "Dcis.Workspace.DocumentAnalyzer", "Dcis.Workspace.MailSendSwitch".

    System.Int32 traceLevel

    The trace level. Allowed values are: 0 = Off, 1 = Error, 2 = Warning, 3 = Info, 4 = Verbose. NOTE: If the specified switch is a boolean switch, the allowed values are: 0 = disabled, 1 = enabled.

    Examples

    POST http://YourServerName/InfoShare/Json/Server/SetTraceLevel

    Example for setting a trace level.

    {
       "connectionId": "e3b3b164-9b0b-4d00-9981-83fe4835df1a",
       "traceSwitch": "Dcis.VersionStore.Rdb.Internal",
       "traceLevel": 2
    }

    Response:

    { }
    Exceptions
    Type Condition
    ServiceException

    The connection id {connectionId} isn't valid or has expired (10008)

    ServiceException

    Trace level not available {traceLevel} (10077)

    ServiceException

    Verification code is needed: Verification code not yet verified (10152)

    ServiceException

    Given value {switchValue} is not applicable for boolean switches (10351)

    Back to top Copyright © Kendox