Logs
We have discussed logs at length throughout this book; in Chapter 9, ArcGIS Enterprise Standards and Best Practices, we showed how to set up a daiquiri logger, and, earlier in this chapter, we put that same daiquiri logger to work. Let's talk about them one more time. If you have a Python script that runs, or is run on any sort of schedule, you need to have logging enabled in it. Having logging in your scripts not only helps you figure out what went wrong last night when it ran and failed at 2 A.M., but logging gives you a history of your runs (so long as you implement your logging to not overwrite the same log file with every run; for example, with a daiquiri TimedRotatingFile output) and provides accountability, showing that your processes ...