< Back
Print

Response log

The following array shows a typical respons code of the GenericJSON connector. Please note that data will be sent using a JSON string, the following only shows an exemplary array.

 

Example response log (Json)


{"code":200,"message":"4 sections processed","outputfile":"",
"log":[{"message":"Import of Product abc was not successful","type":"result","level":8, "csid" : 4713, "csclass":"Pdmarticle", "details" : "very complex debug message", "duration":36},
{"message":"Import of Product xyz was successful","type":"result","level":4, "csid" : 4711, "csclass":"Pdmarticle", "details" : "very complex debug message", "duration":36}
]}
 

Description of the log file

Value Description Example
message summary of the message Import of Product abc was not successful
type Message type (default: common, optional) result
level Number for log level (see below) 4
csid If csid and csclass are given, you can jump directly to the object in the log 4711
csclass If csid and csclass are given you can jump directly to the object in the log (csclass: Pdmarticle, Mamfile, User) Pdmarticle
details Detailed debug message (optional) very complex debug message
duration Duration for the operation e.g. for an import of a product in micro-seconds  36


Internal Variables for the log level:



/** Log-Level: **/
const SCLOGDETAIL_STATE_RESULT = 32;
const SCLOGDETAIL_STATE_FORCE = 16;
const SCLOGDETAIL_STATE_ERROR = 8;
const SCLOGDETAIL_STATE_NOTICE = 4;
const SCLOGDETAIL_STATE_DEBUGGER = 1;
const SCLOGDETAIL_STATE_SUCCESS = 2;
const SCLOGDETAIL_STATE_WAITING = 0;


Location of the response log file

Was this article helpful?
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Table of Contents