ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Aide
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plateforme cartographique de votre organisation

ArcGIS Desktop

Un SIG professionnel complet

ArcGIS Enterprise

SIG dans votre entreprise

ArcGIS Developers

Outils de création d'applications de localisation

ArcGIS Solutions

Modèles d'applications et de cartes gratuits pour votre secteur d'activité

ArcGIS Marketplace

Téléchargez des applications et des données pour votre organisation.

  • Documentation
  • Support
Esri
  • Se connecter
user
  • Mon profil
  • Déconnexion

ArcMap

  • Accueil
  • Commencer
  • Carte
  • Analyser
  • Gérer les données
  • Outils
  • Extensions

SetLogHistory

  • Résumé
  • Discussion
  • Syntaxe
  • Exemple de code

Résumé

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

Discussion

When running a script, history logging is activated by default. To disable history logging, use arcpy.SetLogHistory(False).

Syntaxe

SetLogHistory (log_history)
ParamètreExplicationType de données
log_history

True to enable geoprocessing logging history and False to disable.

Boolean

Exemple de code

SetLogHistory example

Turn off geoprocessing log history.

import arcpy
arcpy.SetLogHistory(False)

Rubriques connexes

  • GetLogHistory
  • Affichage de l'historique d'exécution d'un outil

ArcGIS Desktop

  • Accueil
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

A propos d'Esri

  • A propos de la société
  • Carrières
  • Blog d’Esri
  • Conférence des utilisateurs
  • Sommet des développeurs
Esri
Donnez-nous votre avis.
Copyright © 2021 Esri. | Confidentialité | Légal