Skip to main content

GetLogHistory

Resumen

Determines whether history logging is active.

Debate

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.

Sintaxis

GetLogHistory()

Valor de retorno

Tipo de datos Explicación

Boolean

Returns whether geoprocessing logging history is enabled.

Muestra de código

GetLogHistory example

Disable history logging, if enabled.

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