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 eio 函数 get stream representing a variable used in internal communications with libeiophp gupnp 函数 sets a function to be called at regular intervalsphp 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 harupage set the shape to be used at the ends of linesphp imagickdraw returns the shape to be used at the end of open subpaths when they are strokedphp imagickdraw returns the shape to be used at the corners of paths when they are strokedphp imagickdraw sets the fill color to be used for drawing filled objectsphp imagickdraw sets the pattern used for stroking object outlinesphp imagickdraw sets the width of the stroke used to draw object outlinesphp intldateformatter sets the calendar type used by the formatterphp mongocursor sets whether this cursor will be left open after fetching the last resultsphp 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 add a field to be used to group resultsphp 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 sets the stream to be used by the library for logging
关注编程学问公众号