Method GetTraceLevel
GetTraceLevel(String, String)
Get trace level
Declaration
int GetTraceLevel(string connectionId, string traceSwitch)
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". |
Returns
Type | Description |
---|---|
System.Int32 | The trace level as an integer. 0 = Off, 1 = Error, 2 = Warning, 3 = Info, 4 = Verbose. |
Examples
POST http://YourServerName/InfoShare/Json/Server/GetTraceLevel
Example for get trace level.{
"connectionId": "e3b3b164-9b0b-4d00-9981-83fe4835df1a",
"traceSwitch": "Dcis.VersionStore.Rdb.Internal"
}
Response:
{
"GetTraceLevelResult": 2
}
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |