Zookeeper::setLogStream

(PECL zookeeper >= 0.1.0)

Zookeeper::setLogStreamSets the stream to be used by the library for logging

说明

public Zookeeper::setLogStream ( resource $stream ) : bool

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).

参数

stream

The stream to be used by the library for logging.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

错误/异常

This method emits PHP error/warning when parameters count or types are wrong or operation fails.

Caution

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

参见

相关文章
php dbx 函数 escape a string so it can safely be used in an sql statementphp gupnp 函数 sets a function to be called at regular intervalsphp mcve 函数 returns array of strings which represents the keys that can be used for response parameters on this transactionphp runkit 函数 determines if the current functions return value will be usedphp svn 函数 creates and returns a stream that will be used to replacephp gmagickdraw sets the fill color to be used for drawing filled objectsphp gmagickdraw sets the color used for stroking object outlinesphp harupage set the shape to be used at the ends of linesphp imagickdraw returns the shape to be used at the corners of paths when they are strokedphp imagickdraw set the polygon fill rule to be used by the clipping pathphp imagickdraw sets the fill color to be used for drawing filled objectsphp intldateformatter sets the calendar type used by the formatterphp mongogridfsfile returns a resource that can be used to read the stored filephp soapserver sets the object which will be used to handle soap requestsphp solrclient sets the response writer used to prepare the response from solrphp solrquery used to control how the results should be sortedphp solrquery sets the frequency below which terms will be ignored in the source docsphp swoole mmap map a file into memory and return the stream resource which can be used by php stream operations.php zookeeper checks if the current zookeeper connection state can be recoveredphp zookeeper sets the stream to be used by the library for logging
关注编程学问公众号