Skip to main content

GetLogHistory

Résumé

Determines whether history logging is active.

Discussion

To enable history logging, use the SetLogHistory function.

To limit the duration of history logging, use the LogHistory class as a context manager or decorator.

Syntaxe

GetLogHistory()

Valeur de retour

Type de données Explication

Boolean

Returns whether geoprocessing logging history is enabled.

Exemple de code

GetLogHistory example

Disable history logging, if enabled.

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