Sophie

Sophie

distrib > Mageia > 7 > aarch64 > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 14975

php-manual-en-7.2.11-1.mga7.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Sets the stream to be used by the library for logging</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="zookeeper.setdeterministicconnorder.html">Zookeeper::setDeterministicConnOrder</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="zookeeper.setwatcher.html">Zookeeper::setWatcher</a></div>
 <div class="up"><a href="class.zookeeper.html">Zookeeper</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="zookeeper.setlogstream" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Zookeeper::setLogStream</h1>
  <p class="verinfo">(PECL zookeeper &gt;= 0.1.0)</p><p class="refpurpose"><span class="refname">Zookeeper::setLogStream</span> &mdash; <span class="dc-title">Sets the stream to be used by the library for logging</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-zookeeper.setlogstream-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="type">bool</span> <span class="methodname"><strong>Zookeeper::setLogStream</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$stream</code></span>
   )</div>

  <p class="para rdfs-comment">
   The zookeeper library uses stderr as its default log stream. Application must make sure the stream is writable. Passing in NULL resets the stream to its default value (stderr).
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-zookeeper.setlogstream-parameters">
  <h3 class="title">Parameters</h3>
  <dl>

   
    <dt>
<code class="parameter">stream</code></dt>

    <dd>

     <p class="para">
      The stream to be used by the library for logging.
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-zookeeper.setlogstream-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns <strong><code>TRUE</code></strong> on success or <strong><code>FALSE</code></strong> on failure.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-zookeeper.setlogstream-errors">
  <h3 class="title">Errors/Exceptions</h3>
  <p class="para">
   This method emits PHP error/warning when parameters count or types are wrong or operation fails.
  </p>
  <div class="caution"><strong class="caution">Caution</strong>
    <p class="para">
      Since version 0.3.0, this method emits <strong class="classname">ZookeeperException</strong> and it&#039;s derivatives.
    </p>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-zookeeper.setlogstream-seealso">
  <h3 class="title">See Also</h3>
  <ul class="simplelist">
   <li class="member"><span class="methodname"><a href="zookeeper.setdebuglevel.html" class="methodname" rel="rdfs-seeAlso">Zookeeper::setDebugLevel()</a> - Sets the debugging level for the library</span></li>
   <li class="member"><strong class="classname">ZookeeperException</strong></li>
  </ul>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="zookeeper.setdeterministicconnorder.html">Zookeeper::setDeterministicConnOrder</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="zookeeper.setwatcher.html">Zookeeper::setWatcher</a></div>
 <div class="up"><a href="class.zookeeper.html">Zookeeper</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>