<titledata-rh="true">Interface: TelemetryLogger | Podman Desktop</title><metadata-rh="true"name="viewport"content="width=device-width,initial-scale=1"><metadata-rh="true"name="twitter:card"content="summary_large_image"><metadata-rh="true"property="og:image"content="https://podman-desktop.io/img/banner_podman-desktop.png"><metadata-rh="true"name="twitter:image"content="https://podman-desktop.io/img/banner_podman-desktop.png"><metadata-rh="true"property="og:url"content="https://podman-desktop.io/api/interfaces/TelemetryLogger"><metadata-rh="true"property="og:locale"content="en"><metadata-rh="true"name="docusaurus_locale"content="en"><metadata-rh="true"name="docsearch:language"content="en"><metadata-rh="true"name="docusaurus_version"content="current"><metadata-rh="true"name="docusaurus_tag"content="docs-api-current"><metadata-rh="true"name="docsearch:version"content="current"><metadata-rh="true"name="docsearch:docusaurus_tag"content="docs-api-current"><metadata-rh="true"property="og:title"content="Interface: TelemetryLogger | Podman Desktop"><metadata-rh="true"name="description"content="A telemetry logger which can be used by extensions to log usage and error telementry."><metadata-rh="true"property="og:description"content="A telemetry logger which can be used by extensions to log usage and error telementry."><linkdata-rh="true"rel="icon"href="/img/favicon.ico"><linkdata-rh="true"rel="canonical"href="https://podman-desktop.io/api/interfaces/TelemetryLogger"><linkdata-rh="true"rel="alternate"href="https://podman-desktop.io/api/interfaces/TelemetryLogger"hreflang="en"><linkdata-rh="true"rel="alternate"href="https://podman-desktop.io/api/interfaces/TelemetryLogger"hreflang="x-default"><linkdata-rh="true"rel="preconnect"href="https://MR01ANKQ9S-dsn.algolia.net"crossorigin="anonymous"><linkrel="alternate"type="application/rss+xml"href="/blog/rss.xml"title="Podman Desktop RSS Feed">
<linkrel="alternate"type="application/atom+xml"href="/blog/atom.xml"title="Podman Desktop Atom Feed">
<h2class="anchor anchorWithStickyNavbar_JmGV"id="properties">Properties<ahref="#properties"class="hash-link"aria-label="Direct link to Properties"title="Direct link to Properties"></a></h2>
<h3class="anchor anchorWithStickyNavbar_JmGV"id="iserrorsenabled">isErrorsEnabled<ahref="#iserrorsenabled"class="hash-link"aria-label="Direct link to isErrorsEnabled"title="Direct link to isErrorsEnabled"></a></h3>
<h4class="anchor anchorWithStickyNavbar_JmGV"id="defined-in">Defined in<ahref="#defined-in"class="hash-link"aria-label="Direct link to Defined in"title="Direct link to Defined in"></a></h4>
<h3class="anchor anchorWithStickyNavbar_JmGV"id="isusageenabled">isUsageEnabled<ahref="#isusageenabled"class="hash-link"aria-label="Direct link to isUsageEnabled"title="Direct link to isUsageEnabled"></a></h3>
<h4class="anchor anchorWithStickyNavbar_JmGV"id="defined-in-1">Defined in<ahref="#defined-in-1"class="hash-link"aria-label="Direct link to Defined in"title="Direct link to Defined in"></a></h4>
<h3class="anchor anchorWithStickyNavbar_JmGV"id="ondidchangeenablestates">onDidChangeEnableStates<ahref="#ondidchangeenablestates"class="hash-link"aria-label="Direct link to onDidChangeEnableStates"title="Direct link to onDidChangeEnableStates"></a></h3>
<h4class="anchor anchorWithStickyNavbar_JmGV"id="defined-in-2">Defined in<ahref="#defined-in-2"class="hash-link"aria-label="Direct link to Defined in"title="Direct link to Defined in"></a></h4>
<h2class="anchor anchorWithStickyNavbar_JmGV"id="methods">Methods<ahref="#methods"class="hash-link"aria-label="Direct link to Methods"title="Direct link to Methods"></a></h2>
<h3class="anchor anchorWithStickyNavbar_JmGV"id="dispose">dispose()<ahref="#dispose"class="hash-link"aria-label="Direct link to dispose()"title="Direct link to dispose()"></a></h3>
<h4class="anchor anchorWithStickyNavbar_JmGV"id="returns">Returns<ahref="#returns"class="hash-link"aria-label="Direct link to Returns"title="Direct link to Returns"></a></h4>
<h4class="anchor anchorWithStickyNavbar_JmGV"id="defined-in-3">Defined in<ahref="#defined-in-3"class="hash-link"aria-label="Direct link to Defined in"title="Direct link to Defined in"></a></h4>
<h3class="anchor anchorWithStickyNavbar_JmGV"id="logerror">logError()<ahref="#logerror"class="hash-link"aria-label="Direct link to logError()"title="Direct link to logError()"></a></h3>
<h4class="anchor anchorWithStickyNavbar_JmGV"id="logerroreventname-data">logError(eventName, data)<ahref="#logerroreventname-data"class="hash-link"aria-label="Direct link to logError(eventName, data)"title="Direct link to logError(eventName, data)"></a></h4>
<p>After completing cleaning, telemetry setting checks, and data mix-in calls <code>TelemetrySender.sendEventData</code> to log the event. Differs from <code>logUsage</code> in that it will log the event if the telemetry setting is Error+.
Automatically supports echoing to extension telemetry output channel.</p>
<h5class="anchor anchorWithStickyNavbar_JmGV"id="parameters">Parameters<ahref="#parameters"class="hash-link"aria-label="Direct link to Parameters"title="Direct link to Parameters"></a></h5>
<h5class="anchor anchorWithStickyNavbar_JmGV"id="returns-1">Returns<ahref="#returns-1"class="hash-link"aria-label="Direct link to Returns"title="Direct link to Returns"></a></h5>
<h5class="anchor anchorWithStickyNavbar_JmGV"id="defined-in-4">Defined in<ahref="#defined-in-4"class="hash-link"aria-label="Direct link to Defined in"title="Direct link to Defined in"></a></h5>
<h4class="anchor anchorWithStickyNavbar_JmGV"id="logerrorerror-data">logError(error, data)<ahref="#logerrorerror-data"class="hash-link"aria-label="Direct link to logError(error, data)"title="Direct link to logError(error, data)"></a></h4>
<h5class="anchor anchorWithStickyNavbar_JmGV"id="parameters-1">Parameters<ahref="#parameters-1"class="hash-link"aria-label="Direct link to Parameters"title="Direct link to Parameters"></a></h5>
<h5class="anchor anchorWithStickyNavbar_JmGV"id="returns-2">Returns<ahref="#returns-2"class="hash-link"aria-label="Direct link to Returns"title="Direct link to Returns"></a></h5>
<h5class="anchor anchorWithStickyNavbar_JmGV"id="defined-in-5">Defined in<ahref="#defined-in-5"class="hash-link"aria-label="Direct link to Defined in"title="Direct link to Defined in"></a></h5>
<h3class="anchor anchorWithStickyNavbar_JmGV"id="logusage">logUsage()<ahref="#logusage"class="hash-link"aria-label="Direct link to logUsage()"title="Direct link to logUsage()"></a></h3>
<h4class="anchor anchorWithStickyNavbar_JmGV"id="parameters-2">Parameters<ahref="#parameters-2"class="hash-link"aria-label="Direct link to Parameters"title="Direct link to Parameters"></a></h4>
<h4class="anchor anchorWithStickyNavbar_JmGV"id="returns-3">Returns<ahref="#returns-3"class="hash-link"aria-label="Direct link to Returns"title="Direct link to Returns"></a></h4>
<h4class="anchor anchorWithStickyNavbar_JmGV"id="defined-in-6">Defined in<ahref="#defined-in-6"class="hash-link"aria-label="Direct link to Defined in"title="Direct link to Defined in"></a></h4>