Logging
Logging can be helpful when you run into any issues. They contain information on how you use our products that helps us analyze, troubleshoot, and debug any issues you may experience.
- To write the Core logs in the console, invoke:
DocumentReader.setConfig({
processParams: {
logs: true
},
}, function (m) { }, function (e) { console.log(e); });
- Turn on/off deep logs saving (in case of reading problems):
DocumentReader.setConfig({
processParams: {
debugSaveLogs: true
},
}, function (m) { }, function (e) { console.log(e); });
- Turn on/off input images saving (in case of reading problems):
DocumentReader.setConfig({
processParams: {
debugSaveImages: true
},
}, function (m) { }, function (e) { console.log(e); });
- Turn on/off input images cropping and saving:
DocumentReader.setConfig({
processParams: {
debugSaveCroppedImages: true
},
}, function (m) { }, function (e) { console.log(e); });
- Save the RFID session data to the file in binary format:
DocumentReader.setConfig({
processParams: {
debugSaveRFIDSession: true
},
}, function (m) { }, function (e) { console.log(e); });
- Get the path to the folder of the current session. Before using this, save logs. Each new session provides a different path:
DocumentReader.getSessionLogFolder(
function (str) { console.log(str) },
);
- Remove personal information from logs:
DocumentReader.setConfig({
processParams: {
depersonalizeLog: true
},
}, function (m) { }, function (e) { console.log(e); });