<h2class="anchor anchorWithStickyNavbar_JmGV"id="parameters">Parameters<ahref="#parameters"class="hash-link"aria-label="Direct link to Parameters"title="Direct link to Parameters"></a></h2>
<h3class="anchor anchorWithStickyNavbar_JmGV"id="engineid">engineId<ahref="#engineid"class="hash-link"aria-label="Direct link to engineId"title="Direct link to engineId"></a></h3>
<p>the id of the engine managing the container, obtained from the result of <ahref="/api/namespaces/containerEngine/functions/listContainers">containerEngine.listContainers</a></p>
<p>the id of the container on this engine, obtained from the result of <ahref="/api/namespaces/containerEngine/functions/listContainers">containerEngine.listContainers</a> or as the result of <ahref="/api/namespaces/containerEngine/functions/createContainer">containerEngine.createContainer</a></p>
<h3class="anchor anchorWithStickyNavbar_JmGV"id="callback">callback<ahref="#callback"class="hash-link"aria-label="Direct link to callback"title="Direct link to callback"></a></h3>
<p>the function called when new logs are emitted or new events happen on the stream. The value of <code>name</code> can be either <code>data</code> (and <code>data</code> contains the logs), or <code>end</code> indicating the end of the stream, or <code>first-message</code> indicating no data has been emitted yet on the stream.</p>
<h2class="anchor anchorWithStickyNavbar_JmGV"id="returns">Returns<ahref="#returns"class="hash-link"aria-label="Direct link to Returns"title="Direct link to Returns"></a></h2>
<divclass="text-xs">The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our <ahref="https://www.linuxfoundation.org/trademark-usage/"> Trademark Usage</a> page.