<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error Logging across multiple scripts in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/error-logging-across-multiple-scripts/m-p/652497#M50810</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this link can help:&amp;nbsp;&lt;A class="link-titled" href="https://docs.python.org/2/howto/logging-cookbook.html" title="https://docs.python.org/2/howto/logging-cookbook.html"&gt;Logging Cookbook — Python 2.7.13 documentation&lt;/A&gt;&amp;nbsp;&amp;nbsp;and in case necessary:&amp;nbsp;&lt;A class="link-titled" href="https://docs.python.org/2/howto/logging.html" title="https://docs.python.org/2/howto/logging.html"&gt;Logging HOWTO — Python 2.7.13 documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this looks interesting too:&amp;nbsp;&lt;A class="link-titled" href="http://stackoverflow.com/questions/15727420/using-python-logging-in-multiple-modules" title="http://stackoverflow.com/questions/15727420/using-python-logging-in-multiple-modules"&gt;Using Python logging in multiple modules - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 May 2017 12:04:05 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2017-05-15T12:04:05Z</dc:date>
    <item>
      <title>Error Logging across multiple scripts</title>
      <link>https://community.esri.com/t5/python-questions/error-logging-across-multiple-scripts/m-p/652496#M50809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a large number of scripts that we want to add error logging to and wanted to see if there are any recommendations for creating a single error handling python script that can be called from multiple scripts? I have seen a number of examples that add error checking in a single script but in an effort to reduce duplicate code throughout the numerous scripts, I would like to see if anyone has an recommendations to streamline this process.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 05:36:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-logging-across-multiple-scripts/m-p/652496#M50809</guid>
      <dc:creator>DeanHowell1</dc:creator>
      <dc:date>2017-05-15T05:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error Logging across multiple scripts</title>
      <link>https://community.esri.com/t5/python-questions/error-logging-across-multiple-scripts/m-p/652497#M50810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this link can help:&amp;nbsp;&lt;A class="link-titled" href="https://docs.python.org/2/howto/logging-cookbook.html" title="https://docs.python.org/2/howto/logging-cookbook.html"&gt;Logging Cookbook — Python 2.7.13 documentation&lt;/A&gt;&amp;nbsp;&amp;nbsp;and in case necessary:&amp;nbsp;&lt;A class="link-titled" href="https://docs.python.org/2/howto/logging.html" title="https://docs.python.org/2/howto/logging.html"&gt;Logging HOWTO — Python 2.7.13 documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this looks interesting too:&amp;nbsp;&lt;A class="link-titled" href="http://stackoverflow.com/questions/15727420/using-python-logging-in-multiple-modules" title="http://stackoverflow.com/questions/15727420/using-python-logging-in-multiple-modules"&gt;Using Python logging in multiple modules - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 12:04:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-logging-across-multiple-scripts/m-p/652497#M50810</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-05-15T12:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error Logging across multiple scripts</title>
      <link>https://community.esri.com/t5/python-questions/error-logging-across-multiple-scripts/m-p/652498#M50811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We wrote our own library to handle this and import the library across all of our production python scripts, writing&amp;nbsp;errors and logs&amp;nbsp;to a SQL Server table that is designated for holding results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 14:39:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-logging-across-multiple-scripts/m-p/652498#M50811</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2017-05-15T14:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error Logging across multiple scripts</title>
      <link>https://community.esri.com/t5/python-questions/error-logging-across-multiple-scripts/m-p/652499#M50812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our organization has chosen to create two related tables in our enterprise geodatabase: Scheduled Task Index and Scheduled Task Log&lt;/P&gt;&lt;P&gt;The index table has a record for each script we run with a unique task id. The log table gets many records, each with a task id to identify what script wrote the log message; it also records the date/time. Every scheduled task script has a bit of code to write the success or failure (with error message) of the script to the log table. It also sends an email with the traceback information for debugging. We then have an email report that queries the log table for entries in the past 24 hours so we can easily see if anything failed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 15:28:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-logging-across-multiple-scripts/m-p/652499#M50812</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2017-05-15T15:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error Logging across multiple scripts</title>
      <link>https://community.esri.com/t5/python-questions/error-logging-across-multiple-scripts/m-p/652500#M50813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks everyone that was very helpful.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2017 07:28:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-logging-across-multiple-scripts/m-p/652500#M50813</guid>
      <dc:creator>DeanHowell1</dc:creator>
      <dc:date>2017-05-17T07:28:51Z</dc:date>
    </item>
  </channel>
</rss>

