サマリー
For script tools and stand-alone scripts (scripts run outside of an ArcGIS application), you can enable or disable history logging using the SetLogHistory 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 following:
- 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
説明
When running a script, history logging is activated by default. To disable history logging, use arcpy.SetLogHistory(False).
構文
SetLogHistory (log_history)
パラメーター | 説明 | データ タイプ |
log_history | True to enable geoprocessing logging history and False to disable. | Boolean |
コードのサンプル
SetLogHistory example
Turn off geoprocessing log history.
import arcpy
arcpy.SetLogHistory(False)