6

I'm executing a python script locally on my computer where ArcGIS Desktop 10.0 is installed (Windows 7). The script uses functions from the arcpy library installed with the ArcGIS Desktop to manage (crud) and geoprocess data stored in an ArcSDE Oracle database (remote server).

Do you know where I can find the ArcGIS logs related to the execution of this script?

  • Is logging turned on in your script? – Erica Dec 9 '13 at 13:58
8

History logs are stored in C:\Users\<user name>\AppData\(Local or LocalLow or Roaming)\ESRI\Desktop10.1\ArcToolbox\History

but to save log history, you have to activate it, using this code :

arcpy.SetLogHistory(True)

EDIT:

For Arcgis 10.0 ArcPy do not support SetLogHistory(), so you have to activate it manually like described in this link

  • The code doesn't recognize arcpy.SetLogHistory(True). – yo_haha Dec 9 '13 at 14:23
  • 2
    For Arcgis 10.0 ArcPy do not support SetLogHistory(), so you have to activate it manually like described in this link help.arcgis.com/en/arcgisdesktop/10.0/help../index.html#//… – geogeek Dec 9 '13 at 14:37
  • OK. And if the arcGIS desktop and ArcGIS Server are installed on the same machine, what arcpy library is used? The one installed with the server or the desktop? If it's the server, where can I find the log files? – yo_haha Dec 9 '13 at 15:11
  • 1
    ArcGIS desktop and ArcGIS server uses the same ArcPy library, so you will find log files in the same directory, in both cases. – geogeek Dec 9 '13 at 15:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.