Ce document explique comment les journaux d'exécution des intégrations sont enregistrés dans Application Integration et comment activer la journalisation locale pour vos intégrations.
Présentation
La journalisation locale fait référence aux données ou métadonnées de l'intégration qui sont enregistrées lors de son exécution. Application Integration utilise les données enregistrées pour générer les journaux d'exécution de l'intégration.
Vous pouvez définir la journalisation locale sur l'un des trois modes suivants:
Enable(sync) : les données de journalisation sont conservées (écrites) pendant l'exécution de l'intégration. Dans ce mode, Application Integration écrit les données de journal de manière synchrone après chaque étape d'exécution. Ce mode garantit la génération de journaux pour toutes les exécutions d'intégration.
Utilisez ce mode si votre priorité est de générer des journaux de manière garantie et si une latence dans le temps d'exécution de l'intégration est acceptable.
Enable(async) : par défaut, la journalisation locale d'une intégration est activée en mode asynchrone.
Les données de journalisation sont conservées (écrites) à des intervalles fixes ou une fois l'intégration terminée, selon la première éventualité. Dans ce mode, l'exécution de l'intégration prend relativement moins de temps par rapport au mode Enable(sync), car l'Application Integration écrit les données de journal de manière asynchrone pendant l'exécution de l'intégration. Toutefois, ce mode ne garantit pas la génération de journaux pour toutes les exécutions. Dans de rares cas, il est possible que des journaux ne soient pas générés pour une exécution d'intégration.
Utilisez ce mode si votre priorité est d'exécuter vos intégrations avec une latence réduite et que la génération garantie de journaux est relativement moins importante.
Désactiver:les journaux d'exécution ne sont pas générés pour l'intégration. La désactivation de la journalisation locale améliore la latence d'intégration globale, car les événements de journal ne sont pas générés pour les paramètres de requête et de réponse, ainsi que d'autres variables d'intégration.
Configurer la journalisation locale
Pour configurer la journalisation locale de votre intégration, procédez comme suit:
Dans la barre d'outils, cliquez sur settingsParamètres d'intégration.
Dans la liste Journalisation locale, sélectionnez le mode de journalisation locale. Par défaut, l'option Journalisation locale est définie sur Enable(async) (Activer (async)).
Cliquez sur OK.
Durée de conservation
La période de conservation des journaux d'exécution des intégrations est de 90 jours. Si vous souhaitez modifier la période de conservation, vous devez activer Cloud Logging et configurer la période de conservation de votre projet. Pour en savoir plus, consultez la section Conservation des journaux.
Quotas et limites
Pour plus d'informations sur les quotas et les limites, consultez la section Quotas et limites.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/03 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/03 (UTC)."],[[["\u003cp\u003eThis document outlines how Application Integration saves integration execution logs and how to enable local logging for integrations.\u003c/p\u003e\n"],["\u003cp\u003eLocal logging can be set to three modes: \u003ccode\u003eEnable(sync)\u003c/code\u003e for guaranteed log generation, \u003ccode\u003eEnable(async)\u003c/code\u003e for reduced latency, or \u003ccode\u003eDisable\u003c/code\u003e for the best integration latency, but no logs.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEnable(sync)\u003c/code\u003e mode writes log data synchronously after each step, ensuring log generation, while \u003ccode\u003eEnable(async)\u003c/code\u003e writes data asynchronously, potentially missing some logs.\u003c/p\u003e\n"],["\u003cp\u003eLocal logging settings can be configured within the integration editor by accessing the settings menu and selecting the desired mode from the "Local logging" dropdown.\u003c/p\u003e\n"],["\u003cp\u003eIntegration execution logs are retained for 90 days by default; however, the retention period can be modified by enabling Cloud Logging and setting a new retention period for the project.\u003c/p\u003e\n"]]],[],null,["# Local logging\n\nSee the [supported connectors](/integration-connectors/docs/connector-reference-overview) for Application Integration.\n\nLocal logging\n=============\n\nThis document describes how integration execution logs are saved in Application Integration and how to enable local logging for your integrations.\n\nOverview\n--------\n\nLocal logging refers to the integration's data or metadata that is saved during its execution. Application Integration\nuses the saved data to generate the [integration execution logs](/application-integration/docs/integration-execution-logs).\n\nYou can set the **Local logging** to any of the following three modes:\n\n- **Enable(sync):** The log data is persisted (written) during integration's execution. In this mode, Application Integration writes the log data synchronously after each execution step. This mode guarantees the generation of logs for all the integration executions.\n\n Use this mode if your priority is to have a guaranteed generation of logs, and a latency in\n integration execution time is acceptable.\n- **Enable(async):** By default, local logging for an integration is enabled in async mode. The log data is persisted (written) at fixed intervals or after the completion of the integration's execution, whichever is earlier. In this mode, the integration takes a relatively lesser time to execute when compared to `Enable(sync)` mode, because Application Integration writes the log data asynchronously during the integration execution. However, this mode doesn't guarantee the generation of logs for all the executions. In rare cases, it's possible that logs aren't generated for an integration execution.\n\n Use this mode if your priority is to run your integrations with reduced latency, and the guaranteed\n generation of logs is relatively of a lesser importance.\n- **Disable:** The execution logs aren't generated for the integration. Disabling the local logging improves the overall integration latency, as log events aren't generated for request and response parameters, and other integration variables.\n\nConfigure local logging\n-----------------------\n\nTo configure the local logging for your integration, do the following steps:\n\n1. Open your integration in the [integration editor](/application-integration/docs/integrations-ui-layout).\n2. In the toolbar, click **settingsIntegration settings**.\n3. From the **Local logging** list, select the [local logging mode](#overview). By default, **Local logging** is set to **Enable(async)**.\n4. Click **Done**.\n\n| **Tip:**Disabling the local logging improves the overall integration latency, as log events aren't generated for request and response parameters, and other integration variables.\n\nRetention period\n----------------\n\nThe retention period for integration execution logs is 90 days. If you want to modify the retention period, you must enable Cloud Logging and configure the retention period for your project. For more information, see [Logging retention](/logging/docs/routing/overview#logs-retention).\n\nQuotas and limits\n-----------------\n\nFor information about quotas and limits, see [Quotas and limits](/application-integration/docs/quotas).\n\nWhat's next\n-----------\n\n- Learn about [all tasks and triggers](/application-integration/docs/all-triggers-tasks).\n- Learn how to [test and publish an integration](/application-integration/docs/test-publish-integrations).\n\n- Learn about [error handling](/application-integration/docs/error-handling-strategy).\n- Learn about [integration execution logs](/application-integration/docs/introduction-logs)."]]