If a Print job or Report job fails, the browser console will have a link to logs with more details. But sometimes you might need to collect logs from a job that completed without displaying any errors. Eg. if a PDF output was generated successfully, but the map image and legend in the PDF are blank. Use the following steps to collect the print job logs in those scenarios:
1- Open the app or viewer that you would normally print from.
2- Set up a print, but don't submit it just yet.
3- Open the browser developer tools (usually CTRL + SHIFT + i or F12 shortcut).
4 -Switch to the "Network" tab in the browser developer tools.
5- Run the print and wait for it to complete. To avoid cluttering the Network tab with additional requests, ensure that you don't click the map, pan the map, or resize any windows or panels during this time.
6- From the network traffic in the browser developer tools select the "artifacts" request. If there is more than one, select any of them except for the first.
7a)- If the artifacts request url starts with "wss", select the "Messages" tab next. Select the "results" message, and expand "log", then "traces" from the lower panel.
7b)- If the artifacts request url starts with "https" instead, select the "Preview" tab. Expand "log", then "traces".
8- The logs url will be on the next line under "traces". Select and copy the url. Make sure to scroll horizontally to the end of the panel and confirm the whole url (minus the double quote at the end) is being selected.
9- Open a new browser tab and paste the url. Before hitting Enter, add &topic=All to the end of the url. The logs url will work either way, but adding this extra url parameter will return more details. This setting is case-sensitive, and will only work if it's added before visiting any log URLs in the current browser tab.
Once you hit enter, the logs page will load. The logs url for each print job will only work for a short time after the print job completes. If you'll need to revisit the log later or if you need to send the logs to a support technician, copy the contents from the logs page and paste it a document editor like Word so that it can be saved permanently and accessed easily.
Article is closed for comments.