PHP 8.1.0 RC 2 available for testing

Zookeeper::setDebugLevel

(PECL zookeeper >= 0.1.0)

Zookeeper::setDebugLevelSets the debugging level for the library

Açıklama

public static Zookeeper::setDebugLevel(int $logLevel): bool

Değiştirgeler

logLevel

ZooKeeper log level constants.

Dönen Değerler

Başarı durumunda true, başarısızlık durumunda false döner.

Hatalar/İstisnalar

This method emits PHP error/warning when parameters count or types are wrong or fail to set debug level.

Dikkat

Since version 0.3.0, this method emits ZookeeperException and it's derivatives.

Örnekler

Örnek 1 Zookeeper::setDebugLevel() example

Set debugl level.

<?php
$r 
Zookeeper::setDebugLevel(Zookeeper::LOG_LEVEL_WARN);
if (
$r)
  echo 
'SUCCESS';
else
  echo 
'ERR';
?>
?>

Yukarıdaki örneğin çıktısı:

SUCCESS
add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top