SetLogHistory

Diese ArcGIS 2.8-Dokumentation wurde archiviert und wird nicht mehr aktualisiert. Inhalt und Links sind möglicherweise veraltet. Verwenden Sie die aktuelle Dokumentation.

Zusammenfassung

Controls whether information about the execution of geoprocessing tools is written to an external log file.

Diskussion

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.

Syntax

SetLogHistory (log_history)
ParameterErläuterungDatentyp
log_history

Specifies whether geoprocessing history logging is enabled.

  • True—XML log files will be created in the directory %AppData%\Roaming\Esri\ArcGISPro\ArcToolbox\History.
  • False—XML log files are not created.
Boolean

Codebeispiel

SetLogHistory example

Disable history logging, if enabled.

import arcpy
if arcpy.GetLogHistory():
    arcpy.SetLogHistory(False)

Verwandte Themen