Zookeeper
PHP Manual

Zookeeper::setDebugLevel

(PECL zookeeper >= 0.1.0)

Zookeeper::setDebugLevelSets the debugging level for the library.

Описание

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

Список параметров

logLevel

ZooKeeper log level constants.

Возвращаемые значения

Возвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки.

Ошибки

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

Предостережение

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

Примеры

Пример #1 Zookeeper::setDebugLevel() example

Set debugl level.

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

Результат выполнения данного примера:

SUCCESS

Смотрите также


Zookeeper
PHP Manual