Résumé
For script tools and stand-alone scripts (scripts run outside of an ArcGIS application), you can determine whether history logging is active using the GetLogHistory function.
When log history is activated, after each geoprocessing tool is run, an entry with the information about the tool will be added to:
- The history log file, an Extensible Markup language (XML) file.
- The Geoprocessing history section of the metadata of the data modified or created by the tool.
Syntaxe
GetLogHistory ()
Valeur renvoyée
Type de données | Explication |
Boolean | True, if geoprocessing logging history is enabled. |
Exemple de code
GetLogHistory example
If geoprocessing log history is active, disable logging.
import arcpy
if arcpy.GetLogHistory():
arcpy.SetLogHistory(False)