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– Erica2013年12月09日 13:58:37 +00:00Commented Dec 9, 2013 at 13:58
1 Answer 1
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– yo_haha2013年12月09日 14:23:27 +00:00Commented Dec 9, 2013 at 14:23
-
2For 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– geogeek2013年12月09日 14:37:18 +00:00Commented Dec 9, 2013 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– yo_haha2013年12月09日 15:11:24 +00:00Commented Dec 9, 2013 at 15:11
-
1ArcGIS desktop and ArcGIS server uses the same ArcPy library, so you will find log files in the same directory, in both cases.geogeek– geogeek2013年12月09日 15:58:14 +00:00Commented Dec 9, 2013 at 15:58
Explore related questions
See similar questions with these tags.