Method GetServerLog
GetServerLog(String, String, Int32, Int32)
Get bytes from log file
Declaration
byte[] GetServerLog(string connectionId, string logFile, int from, int count)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
System.String | logFile | Name of the log file |
System.Int32 | from | Optional: Start byte to read. Can be -1. |
System.Int32 | count | Optional: Byte count to read. Can be -1 |
Returns
Type | Description |
---|---|
System.Byte[] | Log file bytes |
Examples
POST http://YourServerName/InfoShare/Json/Server/GetServerLog
Example for get bytes from log file.{
"connectionId": "e3b3b164-9b0b-4d00-9981-83fe4835df1a",
"logFile": "Server-12.log",
"from": -1,
"count": -1
}
Response:
{
"GetServerLogResult":[50,52,47,48,57,47,50,48,49,57,13,10,61,61,61,61,61,61,61,61,61,61,13,10,50,48,49,
57,45,48,57,45,50,52,32,48,55,58,52,55,58,51,56,46,50,56,53,56,32,69,120,99,101,112,116,105,111,110,32,
105,110,32,114,101,115,111,108,118,105,110,103,32,98,108,111,98,32,50,48,49,57,92,48,57,48,48,....
}
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Wrong attributes (from or count) (10013) |
ServiceException | File does not exist {file} (10012) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |
ServiceException | Not enough rights ({accessOperationName}, {accessOperationId}) (10071) |