Resumen
Controls whether information about the execution of geoprocessing tools is written to an external log file.
Debate
In a script, history logging is activated by default. To disable history logging, use arcpy.SetLogHistory(False).
To control whether geoprocessing tool input and output datasets' metadata is updated, use the SetLogMetadata function.
Sintaxis
SetLogHistory (log_history)
Parámetro | Explicación | Tipo de datos |
log_history | Specifies whether geoprocessing history logging is enabled.
| Boolean |
Muestra de código
Disable history logging, if enabled.
import arcpy
if arcpy.GetLogHistory():
arcpy.SetLogHistory(False)