Skip to Content
Mastering ArcGIS Enterprise Administration
book

Mastering ArcGIS Enterprise Administration

by Chad Cooper
October 2017
Intermediate to advanced
382 pages
11h 26m
English
Packt Publishing
Content preview from Mastering ArcGIS Enterprise Administration

Finding and understanding errors

In Chapter 9, ArcGIS Enterprise Standards and Best Practices, we talked about logging and how to set up a Python logger with the daiquiri module. Using a daiquiri logger, it is easy to both log to a file and to standard output at the same time, which is great, but, sometimes, in larger scripts, you need a little bit more than just a logger that prints out the errors. Finding where the error occurred in a larger script can sometimes be your biggest challenge. arcpy comes with an array of error messaging tools that work great to provide us with errors related to arcpy, but standalone scripts often need a little bit more related to standard Python errors (those not related to arcpy). This is where the traceback ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering ArcGIS Server Development with JavaScript

Mastering ArcGIS Server Development with JavaScript

Raymond Kenneth Doman

Publisher Resources

ISBN: 9781788297493Supplemental Content