GetLogHistory (arcpy)

Récapitulatif

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.

The history log file is an Extensible Markup Language (XML) file that contains information about each geoprocessing operation. The information contained in the log file is essentially the same as that found in the Results window.

Syntaxe

GetLogHistory ()
Valeur renvoyée
Type de donnéesExplication
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)

Thèmes connexes

9/12/2013