Below the APIs for job logs are listed. APIs are introduced here.
This returns a list of all the logger names that are used in the job log. These can be used as filter criteria when searching the job log.
GET <ng2_url>/restapi/v1/jobLogNames
Input: N/A
JSON example output:
{
"names": [
"FTP",
"Multicast",
"PCL",
"PDF-Classic",
"PDF_SIGN",
"PrintManager",
"SharePoint",
"Template",
"file"
]
}
This returns a number of job log records that match the search criteria. If no search parameters are specified, the last 50 entries in the job log are returned.
GET <ng2_url>/restapi/v1/jobLogs
Input, optional URL parameters:
Possible values in the output:
JSON example output:
{
"logs": [
{
"logId": "fd4ea357-c436-44b8-8cee-599ce76fd850",
"name": "Template",
"created": "2021-07-02T10:43:47.562+0000",
"logStatus": "ERROR",
"worstChild": "ERROR"
},
{
"logId": "d328c61e-209f-4456-97e3-6f99323d0df0",
"name": "Template",
"created": "2021-07-01T11:38:27.936+0000",
"logStatus": "ERROR",
"children": [
{
"logId": "bb123557-3829-423c-a30a-82343d74b833",
"parentId": "d328c61e-209f-4456-97e3-6f99323d0df0",
"name": "PDF-Classic",
"created": "2021-07-01T11:38:29.176+0000",
"logStatus": "OK",
"message": "PDF rendering complete 1723324 bytes",
"worstChild": "OK"
}
],
"worstChild": "ERROR"
},
{
"logId": "61a87fdf-cd74-4c42-a302-1e0aeced6347",
"name": "Template",
"created": "2021-06-30T09:44:21.412+0000",
"logStatus": "ERROR",
"children": [
{
"logId": "d3c2e1ac-888d-4d98-8fb6-75a835d22957",
"parentId": "61a87fdf-cd74-4c42-a302-1e0aeced6347",
"name": "PDF-Classic",
"created": "2021-06-30T09:44:21.804+0000",
"logStatus": "OK",
"message": "PDF rendering complete 1723328 bytes",
"worstChild": "OK"
}
],
"worstChild": "ERROR"
}
],
"lastTimestamp": 1625046261412,
"lastResult": false,
"searchId": 0
}
This returns every message that was written to the log for a specific log id.
GET <ng2_url>/restapi/v1/jobLogs/<logId>
Input: <id> in the URL must be replaced with the id of the specific log entry (as seen in the list above).
Possible values in the Output:
JSON example output:
{
"logLines": [
{
"id": "17561",
"logId": "fd4ea357-c436-44b8-8cee-599ce76fd850",
"message": "template.001033: General error. java.awt.FontFormatException: Font not found: Courier",
"translated": "template.001033: General error. java.awt.FontFormatException: Font not found: Courier",
"level": "ERROR",
"caller": "com.interform400.template.errorLog.TemplateErrorLogImpl.logError:22",
"created": "2021-07-02T10:43:48.084+0000",
"keyValues": {
"NG2.TENANTID": "testing",
"breadcrumbId": "ID-DESKTOP-TJT1IP8-1625221831447-0-81",
"com.interform400.xml.Template": "preview_1625222627507.ift",
"interformng.printerResolution": "300",
"previewLogCode": "de374633-35a6-4bab-b1ff-fbf84a99800f"
}
},
{
"id": "17560",
"logId": "fd4ea357-c436-44b8-8cee-599ce76fd850",
"message": "template.001002: A referenced font is not found. Font not found: Courier",
"translated": "template.001002: A referenced font is not found. Font not found: Courier",
"level": "ERROR",
"caller": "com.interform400.template.errorLog.TemplateErrorLogImpl.logError:22",
"created": "2021-07-02T10:43:48.082+0000",
"keyValues": {
"NG2.TENANTID": "testing",
"breadcrumbId": "ID-DESKTOP-TJT1IP8-1625221831447-0-81",
"com.interform400.xml.Template": "preview_1625222627507.ift",
"interformng.printerResolution": "300",
"previewLogCode": "de374633-35a6-4bab-b1ff-fbf84a99800f"
}
},
{
"id": "17559",
"logId": "fd4ea357-c436-44b8-8cee-599ce76fd850",
"message": "workflow.used",
"translated": "Workflow null used",
"level": "INFO",
"caller": "com.interform400.joblog.JobLoggerFactory.getInstance:111",
"created": "2021-07-02T10:43:47.583+0000",
"parameters": [
"null"
]
}
]
}