Resumen
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.
Sintaxis
GetLogHistory ()
Tipo de datos | Explicación |
Boolean | True, if geoprocessing logging history is enabled. |
Muestra de código
If geoprocessing log history is active, disable logging.
import arcpy
if arcpy.GetLogHistory():
arcpy.SetLogHistory(False)